Hell, I have static array I draw on map and I want to make it editable. could you help me with any idea?
there is may code
var pol = [
[ 46.655639, 24.804925 ],
[ 46.655389, 24.804815 ],
[ 46.655507, 24.804573 ],
[ 46.655752, 24.804689 ],
[46.655639, 24.804925 ]
];
var poly = L.polygon(pol,{color: 'red'});
poly.addTo(map);
var getPolygonCenter = poly.getBounds().getCenter();
getLocation = [getPolygonCenter.lat, getPolygonCenter.lng];
map.setView(getLocation, defaultZoomLevel);