2/28/2013 · var modifiedDraw = L.drawLocal.extend ({ draw: { toolbar: { buttons: { polygon: ‘Draw an awesome polygon’ } } } }) as was hinted by the documentation, but I ended up having TypeError, extend is not a function .
Also when I debugged it from my chrome browser, I saw that L.Control is a function defined in leaflet typescript file, while in leaflet-draw typescript file ‘Control’ is a name space, inside which Draw is defined, so I think that this piece of code is not referring to currect ‘Control’ Nishant Aug 13 ’16 at 14:00. 1.
var modifiedDraw = L.drawLocal.extend ({ draw: { toolbar: { buttons: { polygon: ‘Draw an awesome polygon’ } } } }) The default state for the control is the draw toolbar just below the zoom control. This will allow map users to draw vectors and markers.
I’m reporting a bug, not asking for help I’ve looked at the documentation to make sure the behaviour is documented and expected I’m sure this is a Leaflet Draw code issue, not an issue with my own code nor with the framework I’m using (Cordova, Ionic, Angular, React ), * Leaflet.draw does not work with multigeometry features such as MultiPoint, MultiLineString, MultiPolygon, * or GeometryCollection. If you need to add multigeometry features to the draw plugin, convert them to a * FeatureCollection of non-multigeometries (Points, LineStrings, or Polygons). */ L. Draw = {} /** * @class L.drawLocal * @aka L …