Skip to content
This repository was archived by the owner on Oct 18, 2019. It is now read-only.

Commit 27641c8

Browse files
committed
Merge pull request #193 from benjwadams/filter_max_point_bounds
Fix filtering clause
2 parents 057da85 + daf33ee commit 27641c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: ioos_catalog/templates/catalog_map.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,8 @@ <h5>Dataset Info</h5>
369369
var clusterGroup = new L.MarkerClusterGroup({disableClusteringAtZoom: 9,
370370
maxClusterRadius: 60});
371371
function filter_coords(coord) {
372-
return ( coord[0] >= -180 || coord[0] <= 180 ||
373-
coord[1] <= 90 || coord[1] >= -90 )
372+
return ( coord[0] >= -180 && coord[0] <= 180 &&
373+
coord[1] <= 90 && coord[1] >= -90 )
374374
}
375375

376376
function filterTrajectory(trajectoryFeature) {

0 commit comments

Comments
 (0)