After, in the script file I'm using these lines to add the controls:
var drawnItems = new L.FeatureGroup(suc,crs);
map.addLayer(drawnItems);
var drawControl = new L.Control.Draw({
edit: {
featureGroup: drawnItems
}
});
map.addControl(drawControl);
And I get this error:
TypeError: L.Control.Draw is not a constructor
http://xxxx.com/xxxxx/js/map.js Line 34
I've been searching in forums, the docs, and in several related pages but I haven't found any clue about what's happening. Could anyone help me in this??
If you need more information about it, just tell and I would be pleased to add it.
Thanks per advance!!
What's in map.js? Does that need to reference the leaflet and draw library to work properly?
Matt