| Message |
Hi.
I want to do the following. The map shall be pannend without click and hold the mouse button. Panning should be possible just by moving the mouse over the map. I am searching for a method to call the panning function.
I use this line:
dojo.connect(map, "onMouseMove", movemap);
The function movemap then should activate the panning.
Is there any way to do this? Something like map.startpan ?
I already tried to trick the mapwindow with the following code in the movemap function:
var fireOnThis = document.getElementById("mapDiv");
var evt = document.createEvent("MouseEvents");
evt.initEvent("mousedown", true, true);
fireOnThis.dispatchEvent(evt);
But this code doesnt work because the mouse is released immediately after the call.
Thanks in Advance! |