Demonios, tengo una matriz estática que dibujo en el mapa y quiero que sea editable. me podrias ayudar con alguna idea?
hay código de mayo
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);