ThinkGeo.com    |     Documentation    |     Premium Support

Setting Maximum Zoom

When the map is loaded I set CurrentExtent and RestrictedExtent to the same thing. I can see the full map and I can not zoom out any further. I can not move the map. This is correct. However there is a limit as to how for I can zoom in on the map. It stops at a certain point and I can not zoom in any further. I want to be able to zoom in further. How can I set this property? Does it have something to do with Zoom levels? Is there a sample for this?


Some things to note:


When the map is first displayed, the zoom bar is at about 50% which is strange because I am zoomed out as far as I can go. The zoom marker should be at the bottom of the bar. How can I fix this?


I have trouble with the minimap. It doesn't display the entire map. It seems to display the most zoomed in area. It's useless like this because it only displays as much as what is on screen anyway.


 



Christian,


Thanks for the post! 
 
Here is a sample for you showing how to set the maximum zoom. Also another user posted a similar problem here; please have a look if you are interested. 
 
In the attached sample, it also shows how to set the mini map resolution ratio by javascript. Just let you know an API (as following) for modifying MiniMap’s ratio will be added in the next release, thanks for pointing it out.
 
Map1.MapTools.MiniMap.MaximizeRatio = 32;
Map1.MapTools.MiniMap.MinimizeRatio = 8;
 

Ben.


232-Post5028.zip (96.9 KB)