From c4750c94ba16979ca34d7efdc1a717e307c7bac4 Mon Sep 17 00:00:00 2001 From: Matt Date: Thu, 30 Apr 2026 21:09:16 +0000 Subject: [PATCH] Filter BLM: exclude urban types, keep unknown/resource - Exclude ARTERIAL, COLLECTOR, LOCAL, paved, highways - Keep RESOURCE, UNKNOWN, and empty functional class - Most BLM data has empty func class, so whitelist was too strict Co-Authored-By: Claude Opus 4.5 --- src/components/MapView.jsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/MapView.jsx b/src/components/MapView.jsx index 336cd13..06211fe 100644 --- a/src/components/MapView.jsx +++ b/src/components/MapView.jsx @@ -1037,17 +1037,21 @@ 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, arterial, collector, local, and highways const excludeUrban = [ "all", // Exclude paved ["!=", ["get", "OBSRVE_SRFCE_TYPE"], "SOLID SURFACE"], ["!=", ["get", "OBSRVE_SRFCE_TYPE"], "Solid Surface"], - // Only RESOURCE functional class - ["any", - ["==", ["get", "OBSRVE_FUNC_CLASS"], "RESOURCE"], - ["==", ["get", "OBSRVE_FUNC_CLASS"], "Resource"] - ], + // 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"], + // Exclude local roads + ["!=", ["get", "OBSRVE_FUNC_CLASS"], "LOCAL"], + ["!=", ["get", "OBSRVE_FUNC_CLASS"], "Local"], // Exclude designated highways ["!", ["has", "HWY_CLASS"]] ]