mirror of
https://github.com/zvx-echo6/navi.git
synced 2026-05-20 22:54:42 +02:00
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:
parent
f788aefae6
commit
6aeaedbcc0
1 changed files with 5 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue