This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

leaflet render OSM nodes and ways solution

0

In my project, I need to add a OSM nodes and ways layer into the leaflet.
And currently I already used overpass API queried the nodes and ways data within a bounding box successfully.

Next problem is how to render the data? In fact render nodes is easy, I can just use a styled circle for it. But for ways, I can't think out good methods yet, any one once did similar job before?

By the way, the map I am using is leaflet, but if other options(e.g. Mapbox) can support this requirement better, I'm ok to use new library.

asked 01 Nov '18, 09:00

Chris%20Bao's gravatar image

Chris Bao
11334
accept rate: 0%

Source code available on GitHub .