From 6aeaedbcc00eea1af6a1ad01d5084fb2933a6168 Mon Sep 17 00:00:00 2001 From: Matt Date: Thu, 30 Apr 2026 21:06:36 +0000 Subject: [PATCH] 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 --- src/components/MapView.jsx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/components/MapView.jsx b/src/components/MapView.jsx index 098534a..336cd13 100644 --- a/src/components/MapView.jsx +++ b/src/components/MapView.jsx @@ -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,