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 <noreply@anthropic.com>
This commit is contained in:
Matt 2026-04-30 21:09:16 +00:00
commit c4750c94ba

View file

@ -1037,17 +1037,21 @@ 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 paved, arterial, collector, local, 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"],
// Only RESOURCE functional class // Exclude arterial roads
["any", ["!=", ["get", "OBSRVE_FUNC_CLASS"], "ARTERIAL"],
["==", ["get", "OBSRVE_FUNC_CLASS"], "RESOURCE"], ["!=", ["get", "OBSRVE_FUNC_CLASS"], "Arterial"],
["==", ["get", "OBSRVE_FUNC_CLASS"], "Resource"] // 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 // Exclude designated highways
["!", ["has", "HWY_CLASS"]] ["!", ["has", "HWY_CLASS"]]
] ]