Answer the question
In order to leave comments, you need to log in
How to make an editable map on the site?
Where to look for information, what to look for?
How to make a web page with a map.
The map is made up of layers. The city map itself is loaded onto the lower layer (from OpenStreetMap), the upper layers are loaded from the database. And it is also necessary that the user can enter elements (point / line / polygon) on the desired layer with the mouse and they are saved in the database.
Answer the question
In order to leave comments, you need to log in
You need to put a click handler on the map. And send XMLHttpRequest to the server
So far, I realized that to solve my question, you need to look towards Leaflet and GeoJSON.
Now I would like to understand how to load layers from the database onto the map. And how to edit these layers from the site.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question