Skip to content

Commit

Permalink
Use tag value to exclude conservation districts instead of hardcoding…
Browse files Browse the repository at this point in the history
… IDs
  • Loading branch information
quincylvania committed Dec 11, 2024
1 parent 6ed2fc2 commit bb8c7de
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions js/mapController.js
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,7 @@ function updateTrailLayers() {
map.setFilter('park-fill', [
"any",
["==", ["id"], focusedId],
["!", ["in", ["id"], ["literal", conservationDistrictOmtIds]]]
["!", ["in", ["get", "protected_area"], ["literal", ["conservation_district"]]]]
]);
map.setFilter('park-outline', [
"any",
Expand Down Expand Up @@ -1457,13 +1457,6 @@ async function loadInitialMap() {
.on('dblclick', didDoubleClickMap);
}

// some "park" features aren't really parks
const conservationDistrictOmtIds = [
16953943, // Adirondack Park
62654773, // Catskill Park
110177633, // Pinelands NR
];

function omtId(id, type) {
let codes = {
"node": "1",
Expand Down

0 comments on commit bb8c7de

Please sign in to comment.