ThinkGeo.com    |     Documentation    |     Premium Support

ZoomIn() does not work when using values less than 50

I am encountering a problem with the the ZoomIn() method. It seems that any value less than 50 the control ignores.


If I set:

ZoomIn(49);

the map will not  zoomin, but if I set:

ZoomIn(50):

the map will zoomin.



Steve,


This is natural and expected. By default, we will have 20 preset zoom levels and you cannot zoom in & zoom out to the middle of them, so when you ZoomIn by 50+ percentage, it will go to next zoomlevel while it will keep the current zoomlevel when it is less than 50 percentage.
 
While if you change the snapping mode as following it can solve the problem somehow, while the caches system may not work perfectly before its chances is much less.

winformsMap1.ZoomLevelSnapping = ZoomLevelSnappingMode.None;

 

Please feel free to let me know if any more questions.
 
Thanks.
 
Yale