ThinkGeo.com    |     Documentation    |     Premium Support

Track zoom in map

Hi all!


I just try to track zoom in my map. But it's not excecute. I don't know how. Please help me!


It's my  code:


            winformsMap1.InteractiveOverlays.Clear();

            ExtentInteractiveOverlay extentInteractiveOverlay = new ExtentInteractiveOverlay();

            extentInteractiveOverlay.PanMode = MapPanMode.Disabled;

            extentInteractiveOverlay.RightClickDragMode = MapRightClickDragMode.ZoomOutWithKey;

            extentInteractiveOverlay.RightClickDragKey = Keys.None;

            extentInteractiveOverlay.ZoomPercentage = 50;

            winformsMap1.InteractiveOverlays.Add(extentInteractiveOverlay);


 


Thanks all!



Nguyen, 
   
   I just want to make sure about what you need exactely. What you want is to disable the panning on your map and allows the user to track zoom in simply by tracking rectangle without having to hold shift key, correct? To do that, you will need to extent the ExtentInteractiveOverlay to write that behavior. I don’t think you can do that simply by setting some properties. Thank you.