Leaflet.draw icon indicating copy to clipboard operation
Leaflet.draw copied to clipboard

Vector drawing and editing plugin for Leaflet

Results 130 Leaflet.draw issues
Sort by recently updated
recently updated
newest added

I have a map with draw controls to create, edit and remove only markers. All works fine, but I would like to remove the marker just with one click... without...

Hi guys, I'm trying to add the leaflet draw in VueJS 3 but when I create a drawing the leaflet returns the error `Cannot read property 'x' of undefined` -...

When i create some drawing shape i subscribe to the mouse events and then start drawing: ``` let drawingShape = new Leaflet.Draw.Rectangle(map, drawingOptions) map.on('mousedown', handleDrawingMouseDownEvent); map.on('mousemove', handleDrawingMouseMoveEvent); drawingShape.enable(); ``` But...

When drawing a polygon, the option allowIntersection appears to work correctly. But thereafter when I edit the polygon the option allowIntersection does not work as expected, I mean on edit...

## How to reproduce - Leaflet version I'm using: `^1.7.1` - Leaflet Draw version I'm using: `^1.0.4` - Browser (with version) I'm using: `Firefox 93.0 (64 bits)` - OS/Platform (with...

When calling `LayerGroup#clearLayers`, an exception is thrown on this line: https://github.com/Leaflet/Leaflet.draw/blob/c6af99b761c5d9900bf5a3e2e1d8827bbde29542/src/edit/handler/Edit.SimpleShape.js#L66 Error: ``` TypeError: Cannot read property 'length' of null at NewClass.removeHooks (leaflet.draw-src.js:2379) at NewClass.eval (leaflet.draw-src.js:2795) at NewClass.fire (leaflet-src.js:593) at...

## How to reproduce Copy example from https://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html under the L.Draw.Event section. The page shows the sample code: ``` map.on(L.Draw.Event.CREATED;` function (e) { var type = e.layerType, layer = e.layer;...

Hi, I'm changing the options set to `drawControl` dynamically and I noticed that passing `polyline: false` for instance, won't remove/hide the polyline control. If it's normal, it should be in...

Adding the optional dependency [Leaflet.curve](https://github.com/elfalem/Leaflet.curve) will enable the drawing of curves. It is only available for Leaflet >= 1.0. and with the L.curve library imported, with a graceful fallback if...

- [X] I'm reporting a bug, not asking for help - [X] I've looked at the [documentation](http://leaflet.github.io/Leaflet.draw/dist/reference-0.4.1.html) to make sure the behaviour is documented and expected - [X] I'm sure...