tracestrack-maps icon indicating copy to clipboard operation
tracestrack-maps copied to clipboard

Extending custom motorway/road shields support

Open radoslav-orlov opened this issue 2 years ago • 5 comments

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.

radoslav-orlov avatar Nov 24 '23 09:11 radoslav-orlov

Hi! We have plans to open source the road shields svg to support more shields. It'll come soon.

quinncnl avatar Nov 25 '23 11:11 quinncnl

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.

quinncnl avatar Mar 25 '24 18:03 quinncnl

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.

computerfan0 avatar Apr 27 '24 17:04 computerfan0

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.

1ec5 avatar Apr 28 '24 03:04 1ec5

@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.

quinncnl avatar Apr 28 '24 21:04 quinncnl