Closed ThomasDaheim closed 6 years ago
same here!
Basically what's done here:
https://github.com/Leaflet/Leaflet.Editable/blob/master/src/Leaflet.Editable.js#L432
In other words
map.editTools = L.Editable(myMap, {options goes here})
Thanks! But if I do
myMap.editTools = L.Editable(myMap, {editable: true});
I get
TypeError: this.callInitHooks is not a function. (In 'this.callInitHooks()', 'this.callInitHooks' is undefined)
Any other ideas?
Sorry, missing "new" keyword:
map.editTools = new L.Editable(myMap, {options goes here})
Thanks! Works like a charm now :-)
Hi,
I would like to add Leaflet.Editable to a map that has already been created elsewhere. So far I have tried something like
but that leads to an error in map.initialize.
Is there any way to make an existing map editable? Unfortunately, I don't have control over the code that creates the map in the first place.