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]
// Filter out solid surface (paved)
// Filter out paved surfaces, arterial/collector roads, and highways
const excludeUrban = [
"all",
// Exclude paved
["!=", ["get", "OBSRVE_SRFCE_TYPE"], "SOLID SURFACE"],
["!=", ["get", "OBSRVE_SRFCE_TYPE"], "Solid Surface"],
// Exclude arterial roads
["!=", ["get", "OBSRVE_FUNC_CLASS"], "ARTERIAL"],
["!=", ["get", "OBSRVE_FUNC_CLASS"], "Arterial"],
// Exclude collector roads
["!=", ["get", "OBSRVE_FUNC_CLASS"], "COLLECTOR"],
["!=", ["get", "OBSRVE_FUNC_CLASS"], "Collector"],
// Only RESOURCE functional class
["any",
["==", ["get", "OBSRVE_FUNC_CLASS"], "RESOURCE"],
["==", ["get", "OBSRVE_FUNC_CLASS"], "Resource"]
],
// Exclude designated highways
["!", ["has", "HWY_CLASS"]]
]
// Invisible hit-area layer for clicking
map.addLayer({
id: BLM_ROUTES_HIT,