Skip to content

Commit

Permalink
Filter park POI features by area
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Nov 12, 2024
1 parent 92796ad commit c37cdfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/mapController.js
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,7 @@ function updateTrailLayers() {
['in', ["get", "leisure"], ["literal", ["park", "nature_reserve"]]],
['in', ["get", "boundary"], ["literal", ["protected_area", "national_park"]]]
],
[">=", ["*", ["get", "BBOX_AREA_Z0_PX2"], ["^", ["^", 2, ["zoom"]], 2]], 0.0000001],
["!", ["in", ["get", "tourism"], ["literal", ["camp_site", "caravan_site"]]]],
// don't show icon and label for currently focused feature
["!=", ["get", "OSM_ID"], focusedEntityInfo ? focusedEntityInfo.id : null],
Expand Down

0 comments on commit c37cdfb

Please sign in to comment.