Answer the question
In order to leave comments, you need to log in
How to import xml OSM into OpenLayers?
Hello, I would like to know how to import the xml file downloaded from OSM into OpenLayers.
Website in html (so far) with JS
Answer the question
In order to leave comments, you need to log in
To do this, you need to simplify the access information - by loading it into the database, and then output it from the database to GeoJSON - dividing it into tiles, or in its entirety - for the desired area.
https://wiki.openstreetmap.org/wiki/RU:Osm2pgsql
You can, of course, set Mapnik on the base, but I would output the vector - it's easier to work with specific objects with it - without needing to contact the server again.
Actually, everything is written here how to convert the entire area into GeoJSON without dividing it into tiles https://wiki.openstreetmap.org/wiki/GeoJSON
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question