ThinkGeo.com    |     Documentation    |     Premium Support

Disable Panning

Is there a way to cancel panning when the user drags the mouse across the map? Alternatively, can I intercept the event somehow.


Thanks!



Matt,


The easy way is that set the pan mode to disable panning of ExtentInteractiveOverlay, the extent InteractiveOverlay also has many event which you can intercept.


winformsMap1.ExtentOverlay.PanMode = MapPanMode.Disabled;

Please let me know if you have more questions.


THanks


James



Thanks James.



I am glad we gave you the correct solution. I let you know that you can find in the Code Community a project that shows you how to have more control on how to interact with the map and its extent. It is called Track Zoom In Without Shift. You can check it out if you are interested.


code.thinkgeo.com/projects/show/trackzoomwithout