Tag Info

New answers tagged

0

This sample may help you. I don't think you should need disableMouseEvents or disableMapEvents. I was able to use this to keep map click events separate from selecting features and managed to build a few other things on as well. The initSelectToolbar function runs once after clicking the button and then finishes after selecting features (but I think drawing ...


-1

try map.events.triggerEvent("click");


1

Just a little CSS workaround will do the job for you. You can see the result in the following fiddle: http://jsfiddle.net/GFarkas/kkwgc1nh/ I made all of the images irresponsible to pointer events, so the clicks will fall through them and will activate the popup contents of the GeoJSON layer. The CSS code is: img.leaflet-tile{ pointer-events: none; } ...



Top 50 recent answers are included