-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Found the issue when i toggled the drawing button and sometimes on first click the marker didn't appear. On second try or third, one would eventually appear and work as expected. At first i thought it was something on my side but i managed to reproduce it on the demo site (https://bopen.github.io/leaflet-area-selection/).
How to reproduce:
It does not happen every time so multiple tries are required.
Step 1: Toggle draw button and click once on map.
Step 2: Toggle draw button again to stop drawing.
Step 3: Toggle draw button again and click once on map.
Step 4: Repeat a few times and it will eventually throw the error. (3-5 times worked for me)
- could not reproduce it when i drew the polygon with drag option.
Error on demo site:
TypeError: this.rectDrawEnd is null events.js:424:20 (function onDraggingRectEnd() )
C events.js:424
fire Events.js:190
f events.js:29
fire Events.js:190
m drawing-pane.js:29
m drawing-pane.js:31
onAdd control.js:76
addTo Control.js:70
addControl Control.js:137
index.js:75
u (index):1
main.a5a2d999.chunk.js:1
u (index):1
r (index):1
t (index):1
main.a5a2d999.chunk.js:1
events.js:424:20
Really appreciate the work put in on this repo. This has been my first issue opened on GitHub so if i need to provide more info on this issue, let me know :)