mirror of
https://github.com/zvx-echo6/navi.git
synced 2026-05-20 14:44:51 +02:00
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:
parent
6aeaedbcc0
commit
c4750c94ba
1 changed files with 10 additions and 6 deletions
|
|
@ -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"]]
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue