Replies: 3 comments 5 replies
-
@ZeLonewolf and friends started this nice new map style which focuses on shields if this is what you are looking for. See ZeLonewolf/openstreetmap-americana#141. |
Beta Was this translation helpful? Give feedback.
-
For some reason, the |
Beta Was this translation helpful? Give feedback.
-
Forking the openmaptiles codebase to add country-specific processing sounds like an awfully painful workaround for the lack of road route relations in certain countries. The most straightforward approach to highway shields is simply to add route relations where they're missing, and then openmaptiles/planetiler will be able to produce highway shield-compatible vector tiles out of the box. This is a mapping problem, not an openmaptiles problem. |
Beta Was this translation helpful? Give feedback.
-
We'd like to add country-specific road shields in our mapbox map (which has a custom style already).
Our focus is on Germany and surrounding countries. However, most of the German roads don't have the
network
tag and the way to discern most road-types is by theirref
(such as "A #" for Autobahnen).While we can probably write mapbox expressions to detect the pattern in ref, it might cause false-positives, because we don't know if the road we found is actually in Germany or some other country (what happens if another countrty also has "A 7"? We don't want it to be misdetected to be an Autobahn).
So our idea was to add a
country
tag (ISO3166-1 of surrounding country) to ourtransportation_name
.We are aware that this isn't a simple punch through from OSM, because OSM doesn't have those tags on the roads either.
So this likely involves checking if a feature is inside a country border (or is there an existing relation?).
However, we are not familiar with the openmaptiles codebase and will probably need some guidance for the PostGIS.
country
tag totransportation_name
? Is this even feasible with the current openmaptiles architecture?Beta Was this translation helpful? Give feedback.
All reactions