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]
// 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"]]
]