Panning with mouse hover

Discussion created by islandloafer on Mar 29, 2011
Latest reply on Mar 30, 2011 by islandloafer

I'm new to working with the ESRI Java API, and new to Java in general as well. I'm now trying to build a set of custom panning tools that work with mouse hover rather than click. The idea is to have panning areas in the borders of the map gui, and when the user moves the mouse onto these surfaces the map pans in the appropriate direction.

I've been trying to use onmouseover combined with the panleft(); function in the API, but I can't get it to work.

This is what I have used in the Body:

<div onMouseOver="map.panleft();">Left</div>

How should I properly declare the function in the header, and deploy it in the body?

Thanks a lot for any help!

Best regards