I am using 0.7.7 leaflet and downloaded leaflet.draw plugin. Two files: http://leaflet.github.io/Leaflet.draw/leaflet.draw.css
http://leaflet.github.io/Leaflet.draw/leaflet.draw.js
And saved them to my folder with js files.
The problem is that on simple web-page for test(just html file) it is working perfect.But if i try to include this files in my project i get error:
L.Control.Draw is not a functionOn test web page i include files through the hyperlink, and in my project i just include them from my local folder. Can this difference be a problem?
In browser console there is method Draw on test page, but it doesn`t exist on page of my project. What am i doing wrong? How correctly add this plugin to big project?
أكثر...
http://leaflet.github.io/Leaflet.draw/leaflet.draw.js
And saved them to my folder with js files.
The problem is that on simple web-page for test(just html file) it is working perfect.But if i try to include this files in my project i get error:
L.Control.Draw is not a functionOn test web page i include files through the hyperlink, and in my project i just include them from my local folder. Can this difference be a problem?
In browser console there is method Draw on test page, but it doesn`t exist on page of my project. What am i doing wrong? How correctly add this plugin to big project?
أكثر...