Skip to content

Commit

Permalink
fix(download): fix latitude and longitude access
Browse files Browse the repository at this point in the history
fix latitude and longitude access
  • Loading branch information
mpfeil committed Jan 31, 2018
1 parent 78c9e31 commit 091c12d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/scripts/controllers/sidebar.download.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@
var boxids = [];
var bbox = map.getBounds();
angular.forEach(vm.markersFiltered, function(marker, key) {
if(bbox.contains([marker.lat, marker.lng])) {
boxids.push(marker.station.id);
if (bbox.contains([marker.latLng[0],marker.latLng[1]])) {
boxids.push(marker.station._id);
}
});
return boxids;
Expand Down

0 comments on commit 091c12d

Please sign in to comment.