Tag Info

New answers tagged

-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; } ...


0

Attach to the keydown and keyup events. When the "draw-end" event fires use the "IsShiftDown" to see if the shift was being held down. require(["dojo/on", "dojo/domReady!"], function(on) { var IsShiftDown = false; on(document, "keydown", function(event) { if(event.keyCode == 16) IsShiftDown = true; }); on(document, ...



Top 50 recent answers are included