osm-pt-ngx-leaflet icon indicating copy to clipboard operation
osm-pt-ngx-leaflet copied to clipboard

Discussion about OSM data styling

Open dkocich opened this issue 7 years ago • 0 comments

  • 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)

dkocich avatar May 27 '17 21:05 dkocich