Skip to main content

All Questions

Tagged with
2 votes
1 answer
588 views

How to place custom leaflet.draw shape programmatically?

I'd like to restore a custom L.Draw.Marker (L.Draw.Waypoint) from database, but when i try to initialize it, the result is not a proper layer, but simply the handler. How can i do this without using ...
Janphr's user avatar
  • 31
5 votes
1 answer
7k views

Leaflet.Draw saving data with GeoJson

map.addControl(new L.Control.Draw({ draw: { polygon: false, polyline: false, rectangle: false, circle: false }, edit: {...
asbrandssonOR's user avatar
3 votes
2 answers
5k views

geoJson layer to save [for send DB] the features drawn on the map-Leaflet-Draw

I used this method, but var features = []; map.on('draw:created', function (e) { drawnItems.addLayer(e.layer); var layers = drawnItems._layers; for (var key in layers) features.push(layers[key]....
iddamalgoda's user avatar