I have a tool bar on my map form with Zoom In and Zoom Out buttons. I would like the ZoomIn tool to behave like a track zoom rather than zooming in by percentage. I have searched the samples and can't find an example of how to do this. The Map Suite Explorer application does it quite nicely, but I don't have the source code for that.
Can you suggest a sample to look at? I'm using VB.NET in Visual Studio 2010.
I’m wandering if you are using the Desktop Edition or just Map Suite Service Edition(Core)?
If it’s Desktop Edition, I am afraid that would be complex to do that, because we know the Desktop Edition is a control which had been registered many events such as MouseDown,MouseMove,etc. So, if you want to do more works in those events, please override the methods. Just let you know, we also have many properties such as “MapLeftClickDragMode”,” MapRightClickDragMode”,” PanMode”,” ZoomPercentage” etc. in InteractiveOverlay class and they can be used like this: winformsMap1.ExtentOverlay.LeftClickDragMode = MapLeftClickDragMode.Disabled; Hope those properties can help you in some scenarios.
However, if you are just using Map Suite Service Edition, we can do that just like our MapSuite Explorer does. And I’ve created a sample for you, please get it and have a try,
I am using Desktop Edition with VB.NET. I found an example in C# and was able to convert the code to VB using the handy web site developerfusion.com/tools/convert/csharp-to-vb/. If anyone else wants this code, let me know and I will post it.