ThinkGeo.com    |     Documentation    |     Premium Support

Setting the Max Zoom Level on the Map

Hi,


Is there a way to set the max zoom level on the map so a user can't zoom out to far?  Currently if the user zooms all the way out using the slider zoom bar the entire world is very small.  Ideally I would like to set the max extent of the map so I coudl only zoom out to say a country level and the zoom bar slider would automaically adjust to this setting.  Is this possible with the current version of Map Suite Web?


Thanks!



Clint,


You can define a custom ZoomLevelSet on server side and synchronize it to client side, in this way you cannot zoom out beyond the custom zoomLevels you set.  Please have a look at the attached code for detail.


Thanks,


Ben


 



636-ChangZoomLevelSetOfMap.txt (1.83 KB)