osm-pt-ngx-leaflet
osm-pt-ngx-leaflet copied to clipboard
Discussion about OSM data styling
- Basic Leaflet styling - should be enough from the beginning
Points as stop/platform (like in JOSM) http://leafletjs.com/examples/custom-icons/ Lines as "subway map" with relative offset - https://github.com/bbecquet/Leaflet.PolylineOffset (good example http://bbecquet.github.io/Leaflet.PolylineOffset/examples/example_bus.html).
- For this kind of styling, it would make sense to add stop areas to each group of stops/platforms so it would be possible to snap all passing routes to only one central point of in a stop area.
- L Polyline decorator can be used to create arrow markers which will show the direction of a route https://github.com/bbecquet/Leaflet.PolylineDecorator
- MapCSS - quite complex to handle everything https://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation (https://github.com/gravitystorm/openstreetmap-carto, ID editor styles https://github.com/openstreetmap/iD/tree/master/css)