I am writing a Leaflet plugin that extends Leaflet.Draw. When trying to write something like:
L.SRTM.Draw.Feature = L.Draw.Feature.extend({ ... }); the following crashes:
Uncaught TypeError: Cannot read property 'Feature' of undefined
When writing:
L.SRTM.Draw.Feature = L.Class.extend({ ... includes: L.Draw.Feature, ... }); the same thing happens.
What is the problem?