Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Tighten up highway shield rules #3

Closed
1ec5 opened this issue Sep 24, 2014 · 4 comments
Closed

Tighten up highway shield rules #3

1ec5 opened this issue Sep 24, 2014 · 4 comments

Comments

@1ec5
Copy link

1ec5 commented Sep 24, 2014

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:

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.

@skylerbunny
Copy link

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.

@ajashton
Copy link
Member

ajashton commented Oct 1, 2014

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.

@ajashton ajashton closed this as completed Oct 1, 2014
@1ec5
Copy link
Author

1ec5 commented Oct 2, 2014

How about removing FM from the rule?

@ajashton
Copy link
Member

ajashton commented Oct 2, 2014

Ok, done in f36372a

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants