ThinkGeo.com    |     Documentation    |     Premium Support

Zoom in to rectangle without key press

When using ExtentInteractiveOverlay.LeftClickDragMode = MapLeftClickDragMode.ZoomInWithKey with panning disabled, it should be possible to set ExtentInteractiveOverlay.ExtentOverlay.LeftClickDragKey = Keys.None to specify that the user does not need to press a key in order to access the zooming behaviour.  However, in RC1, one must use Keys.LButton rather than Keys.None to achieve this result.  (There is also a similar problem with the right-click drag configuration.)



 


Nicole,
 
Thanks for your post!
 
You did ask a question which we are thinking for a long time. You can image if we can TrackZoomIn without any key needed, then how to make a difference between TrackZoomIn and Pan, also the same thing with TrackZoomOut and Pan.
 
But if you really want to do that, you can try to create your own ExtentInteratciveOverlay to change the behaviors, take a look at the following posts; maybe it is what you are interested.
 
gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/5807/afv/topic/afpgj/1/Default.aspx#8373
 
gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/5803/afv/topic/afpgj/1/Default.aspx#8373
 
 
Any more questions just let me know.
 
Thanks.
 
Yale