Extending custom motorway/road shields support
Hi everyone,
While browsing the maps I noticed that countries like Turkey, Greece, etc. have custom icons rendered on top of their motorways/roads/E routes. Would it be possible to extend this to Bulgaria too? In Wikipedia there are SVG icons of A1-A8, all main roads, and most class II roads, which could be useful. Cheers and thanks in advance.
Hi! We have plans to open source the road shields svg to support more shields. It'll come soon.
An email report related to Philippine road shields:
* If the reference number is only numbers, it will render as a white shield. Example "170"
* If the reference number starts with an E then a number without space, it will render as a yellow shield. Example "E1"
* If the reference number is AH26 (applies for both ref and int_ref) it applies as a blue rectangle.
Ideally we should develop and open source some tools to make adding custom road shields easier. For small scale we can still do manually.
In Ireland, regional and local roads are currently rendered with default shields. I know it's a minor change (especially for local roads), but the correct shields consist of a white rectangle with black borders and text, as shown here.
Similarly, in the UK, B-roads are rendered with the default shields. A roads show green shields with yellow text. Although primary A-roads (marked as highway=trunk) do have green shields, non-primary A-roads and B-roads (marked as highway=primary and highway=secondary respectively) have white rectangular shields with black borders/text, as demonstrated here. Note that highway=primary N-roads in Ireland DO have green shields, so do not change them to have white signs.
Ideally we should develop and open source some tools to make adding custom road shields easier.
In case you haven’t seen it, OSM Americana has developed an extensive collection of shield artwork and a reusable library for drawing them in JavaScript. The countries mentioned above are all covered. It’s designed for vector tiles and requires the tileset to expose details from route relations, as OpenMapTiles does. Nevertheless, you’re welcome to adapt the artwork and tag processing to a different environment – it’s all in the public domain.
@computerfan0 Indeed. Those two were missed in previous iterations. That should be fixed asap.
@1ec5 Thanks for the note. There are indeed quite some nice shield templates we can adapt (for different width). Will work on a mechanism to render/test shields in May.