Filter BLM layer to RESOURCE class only

- Only show routes with RESOURCE functional class
- Removes all urban, local, and unknown roads
- Keeps backcountry access routes only

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Matt 2026-04-30 21:06:36 +00:00
commit 6aeaedbcc0

View file

@ -1038,22 +1038,19 @@ function addBlmTrails(map) {
const lineWidth = ["interpolate", ["linear"], ["zoom"], 10, 1.5, 14, 2.5, 16, 3.5] const lineWidth = ["interpolate", ["linear"], ["zoom"], 10, 1.5, 14, 2.5, 16, 3.5]
// Filter out solid surface (paved) // Filter out solid surface (paved)
// Filter out paved surfaces, arterial/collector roads, and highways
const excludeUrban = [ const excludeUrban = [
"all", "all",
// Exclude paved // Exclude paved
["!=", ["get", "OBSRVE_SRFCE_TYPE"], "SOLID SURFACE"], ["!=", ["get", "OBSRVE_SRFCE_TYPE"], "SOLID SURFACE"],
["!=", ["get", "OBSRVE_SRFCE_TYPE"], "Solid Surface"], ["!=", ["get", "OBSRVE_SRFCE_TYPE"], "Solid Surface"],
// Exclude arterial roads // Only RESOURCE functional class
["!=", ["get", "OBSRVE_FUNC_CLASS"], "ARTERIAL"], ["any",
["!=", ["get", "OBSRVE_FUNC_CLASS"], "Arterial"], ["==", ["get", "OBSRVE_FUNC_CLASS"], "RESOURCE"],
// Exclude collector roads ["==", ["get", "OBSRVE_FUNC_CLASS"], "Resource"]
["!=", ["get", "OBSRVE_FUNC_CLASS"], "COLLECTOR"], ],
["!=", ["get", "OBSRVE_FUNC_CLASS"], "Collector"],
// Exclude designated highways // Exclude designated highways
["!", ["has", "HWY_CLASS"]] ["!", ["has", "HWY_CLASS"]]
] ]
// Invisible hit-area layer for clicking // Invisible hit-area layer for clicking
map.addLayer({ map.addLayer({
id: BLM_ROUTES_HIT, id: BLM_ROUTES_HIT,