how to draw a polygon in leaflet and add it to geojson file

المشرف العام

Administrator
طاقم الإدارة
I am working on a small project with leaflet. the goal of the project is to show a geojson file and updating it dynamicaly from the window of the web site. I have imported the geojson file to the map. here is the code i used:

var geojson; geojson = L.geoJson(lotData, { style: style, onEachFeature: onEachFeature }); Now i want to update the geojson file: i want to add a polygon to the file dynamically and to delete an other one from the file. The problem is that i have no idea how to do it.



أكثر...
 
أعلى