You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.
Texas Farm-to-Market roads (FM) are treated like Micronesian highways (FM). They look just like Texas state highways, which can have matching numbers elsewhere in the state. Micronesia doesn’t appear to have any highways matching the regex anyways.
There would be many more examples (such as Cantabria, Spain’s CA), but the stylesheet mitigates this issue by only applying shields to motorways and ignoring refs with hyphens.
These issues would be resolved by a) selecting shields based on the network tag on route relations (harder – see gravitystorm/openstreetmap-carto#508), or b) somehow limiting the shield rules to a bbox encompassing the U.S. (easier?) and eliminating FM from the regex.
The text was updated successfully, but these errors were encountered:
My vote is for (A). I will admit that in part, this is because I've already completely implemented Wisconsin Interstate, US, and State Highway relations as per the unique network tag syntax, and would be happy to see shield creation based on potentially non unique fields (i.e., anything that is NOT the network field on a route relation) go away so one single solution can be focused on.
This is one of those times where IMHO it's better to be prescriptive ('Do this, and this way, and the code will catch up when it catches up'), rather than attempting to be descriptive of numerous 'approximate ways to render shields', which a current/future map renderer will then have to attempt to muddy through to figure out what it's actually supposed to do with that particular way/relation/ref-on-way combination.
Neither selecting shields based on relations nor limiting the styles to a particular bounding box are possible with CartoCSS given the current vector tiles. Future versions of the vector tiles will address the issue but there is nothing really actionable in this project other than removing the interstate shield styles completely.
As part of a discussion about
ref
formats on ways, I dug up some examples of the regex-based shield rule giving the wrong results:CA
) are treated like California state routes (CA
).NH
) is treated like a New Hampshire state route (NH
).FM
) are treated like Micronesian highways (FM
). They look just like Texas state highways, which can have matching numbers elsewhere in the state. Micronesia doesn’t appear to have any highways matching the regex anyways.There would be many more examples (such as Cantabria, Spain’s
CA
), but the stylesheet mitigates this issue by only applying shields to motorways and ignoringref
s with hyphens.These issues would be resolved by a) selecting shields based on the
network
tag on route relations (harder – see gravitystorm/openstreetmap-carto#508), or b) somehow limiting the shield rules to a bbox encompassing the U.S. (easier?) and eliminatingFM
from the regex.The text was updated successfully, but these errors were encountered: