All Questions
Tagged with leaflet.draw json
3
questions
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 ...
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: {...
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]....