I was hoping that the new version was going to have a property such as MouseMode but it doesn't (unless I really am blind).
I would like to get the mouse zooming and panning functions to work similar to the version 2.x and cannot find sample code or figure it out on my own.
It appears as though the new version has the ability to do this but it doesn't look like it is very simple.
Sample code would be very helpful... Again noting that using this with a tablet PC means no access to the keyboard.
Thanks
Alan
Mouse Zoom in new Version
Alan,
Please see the thread here. :)
gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/5196/afv/topic/afpgj/1/Default.aspx#8688
Thanks,
Ben.
I am still at the same impass.
There is no "MapLeftClickDragMode.ZoomIn" only "MapLeftClickDragMode.ZoomInWithKey" and if set it to "LeftClickDragKey = Keys.None" then it doesn't work at all.
It is the "WithKey" that is the problem, On a tablet they need to Zoom in using a stylus with no access to the keyboard. I have buttons on the interface so the user can select either ZoomIn or Pan Mode.
Alan
Alan,
Thanks for your post. In latest Desktop Edition(3.0.307 RC1), we supports a very common and easy use way to move around the Map. Use the LeftClick and Drag to Pan, so even you set the LeftClickDragKey set to Keys.None, it still goes to Pan instead of TrackZoomIn.
Attachment contains a demo which show another way to customize the TrackZoom similar to 2.x version, hope this can help.
Any further questions please let me know.
Thanks.
Yale.
732-Post5807Demo.zip (11.8 KB)