Open attilakundev opened 2 years ago
This function ignores the minzoom
argument.
I 100% agree and have tried to make the shields show up sooner for primary and secondary roads. Unfortunately, the required data is not available in the vector tiles at lower zooms and the style is currently showing them as early as possible. A change to OpenMapTiles (or a future custom PlaneTiler config) is needed for this.
The issue appears to be in the source data then, not the style:
> new Set(
map.querySourceFeatures('openmaptiles',{sourceLayer:'transportation_name'})
.flatMap(x=>Object.entries(x.properties))
.filter(x=>x[0].startsWith('route_'))
.map(x=>x[1]))
Set(2) {'US:OH=7', 'US:US=22'}
My concern regarding rendering route shields:
highway=primary
orhighway=secondary
? In my opinion, primary routes should render also at zoom level >=9, and secondary routes from level 10, because in my opinion that's more natural, or that's what you can see in the maps like GMaps or even paper maps (eg. Rand McNally) usually display the state routes on a low scale.Right now, this is what I can see in W.Va. at level ~9 zoom:
at level ~10 zoom: