ThinkGeo.com    |     Documentation    |     Premium Support

Zooming In And Out with mouse scroll

Hello


 


Why when using the mouse scroll button the zooming is not centered, so the zooming will not give the neede extent


If you compare that by a normal zommIn (70) and ZoomOut (30), the difference is so clear


 


thanks



Katherine,


Thanks for your post.
 
When you use the mouse scroll button, the zooming will not center at the mouse scroll position. If you want, you could call the ZoomToCenter API instead.
 
About the ZoomPercentage when you use the mouse scroll to zoom in or zoom out, the default value is 40 percent, while you could change its value if you want in the following way:

winformsMap1.ExtentOverlay.ZoomPercentage = 30;

 
Any more questions just feel free to let me know.
 
Thanks.
 
Yale

OK, 
 I think that is better if you make a property for specifying the way the mouse scroll will zoom,  
 the user can specify whether to use Center Zooming or default zooming 
  
 thank for you.

Krypton, 
  
 You are welcome. The MapSuite component was designed with great extensibility, while some of them may be not easy to be found.  
  
 Let me know if any more questions just feel free to let me know. 
  
 Thanks. 
  
 Yale