Leaflet / Leaflet.draw

Vector drawing and editing plugin for Leaflet
https://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html
MIT License
1.97k stars 992 forks source link

Leaflet Draw Marker Click Issue #602

Open ghost opened 8 years ago

ghost commented 8 years ago

Not sure if this is an issue in Leaflet Draw or with Leaflet itself. When adding a marker to a layer with Leaflet Draw v0.3.2 and Leaflet v1.0 there is an error with the marker's click event not opening a popup. The popup opens if .openPopup() is called. I've also tested this with Leaflet Draw master.

See this jsfiddle for illustration of the issue: https://jsfiddle.net/DeanoFino/mvk00sz3/

ghost commented 8 years ago

This does look like leaflet draw. I tested adding a marker and binding a popup on dblclick with just Leaflet v1.0 and it works fine. See this jsfiddle for example: https://jsfiddle.net/DeanoFino/dkrkb6L6/

jrandeniya commented 8 years ago

Try using the Leaflet.draw in the leaflet-master branch. Leaflet.draw v0.3.2 only supports Leaflet 0.7.x.

Also see: https://github.com/Leaflet/Leaflet.draw/issues/601

ghost commented 8 years ago

This same issue exists in Leaflet.draw master branch with Leaflet v1.0.

ddproxy commented 7 years ago

@DeanoFino - 0.4.0 was released for L1.0 support. Please check if this is still an issue?

Adding as a bug in case this is still a problem.

XeverusX1 commented 6 years ago

This is still an issue and not fixed. Is there any work around?