planetiler-openmaptiles icon indicating copy to clipboard operation
planetiler-openmaptiles copied to clipboard

Network property is in germany set to road even a network is available

Open rene-mueller opened this issue 1 year ago • 4 comments

Network property is in Germany set to road even a network is available. The streets should always have a network so that the streets can be equipped with the national signs, as with mapbox street style.

US: https://onthegomap.github.io/planetiler-demo/#14.14/43.67017/-92.86298 grafik

Germany: https://onthegomap.github.io/planetiler-demo/#17.01/50.365394/11.785406 grafik

rene-mueller avatar Jan 04 '24 11:01 rene-mueller

I think this is a limitation of openmaptiles. It only defines a small number of network types: https://github.com/openmaptiles/openmaptiles/blob/master/layers/transportation/network_type.sql. Projects like openstreetmap-americana use the route_n tags instead to render highway shields since a road may belong to multiple networks. They publish the highway shield renderer as an npm package too.

msbarry avatar Jan 06 '24 02:01 msbarry

@msbarry Ok, then from my point of view it would make sense to include this as a shield property in transportation_name.

rene-mueller avatar Jan 07 '24 11:01 rene-mueller

Yeah definitely, you can open it up as an issue in openmaptiles then if/when they adopt we'll port to planetiler-openmaptiles. Any deviation from standard openmaptiles in this repo needs to be hidden behind a command line flag you opt into.

msbarry avatar Jan 07 '24 12:01 msbarry

@msbarry that sounds logical. i open an issue there. :)

rene-mueller avatar Jan 08 '24 08:01 rene-mueller