leaflet-locationpicker icon indicating copy to clipboard operation
leaflet-locationpicker copied to clipboard

Close code not working as intended.

Open BlogSafe opened this issue 2 years ago • 0 comments

The following code is not working correctly and because I know nothing about leaflet I don't have a solution. I assume this is supposed to detect when the user clicks outside of leaflet and closes the map. It currently closes the map even when clicked on the map without reporting the location. I changed the line above it to:

var close = false;

and this bandaids the problem but doesn't fix it.

while (p) { if (p._leaflet) { close = false; break; } p = p.parentElement; }

BlogSafe avatar Mar 06 '22 18:03 BlogSafe