matkoniecz / lunar_assembler

SVG maps from OpenStreetMap data. Available at https://mapsaregreat.com/osm_to_svg_in_browser/
GNU Affero General Public License v3.0
40 stars 5 forks source link

add symbols at highway=bus_stop locations - defined in map style not directly in main lunar_assembler #115

Open matkoniecz opened 2 years ago

matkoniecz commented 2 years ago

the first step:

place SVG symbol from JS file at specific lat/lon location ("just" translating position)


plan:

1) detect highway=bus_stop nodes/centroids

2) place geometry representing it

3) locate nearest point on road

4) rotate such geometry

In general, it is about placing symbols. Is it viable to load that from SVG file?

Maybe initially try loading svg from file (can be embedded in JS file) and placing it at a specific lat/lon position?