ThinkGeo.com    |     Documentation    |     Premium Support

Custom Zoomlevel limitation

Hello,


are there any limits on the number of custom zoomlevels.


We use custom zoomlevel:


1-20  - custom zoomlevel where scale is equal the basic  MapSuite zoomlevels


21-24 - additional zoomlevels (scale alway half of previous zoomlevel-scale    563,2322216, 281,6161108 .........


If we zoom in we can zoom to  zoomlevel 22 . If we try to zoom in more nothing happens.


Thomas


 



In the Code Community, there is a project that shows how to define your own zoom levels if the predefined zoom levels offered by the Map Suite API don't meet all your needs. Creating your own zoom levels, you have full control on the number of levels you want and the granularity between each zoom levels etc. You can check out this project and see how you can adapt for your own needs:


The project is called Zoom Levels Partitioning.


code.thinkgeo.com/projects/show/zoomlevels



Val, 
  
 I know Zoom Levels Partitioning sample. I have checked my code twice. In the customZoomlevels-collection in my Zoomlevelset there are 24 Zoomlevels.  
  
 If I zoom in I use  the following code where dblLowerScale is set by  
  
  dblLowerScale = ThinkGeo.MapSuite.Core.ZoomLevelSet.GetLowerZoomLevelScale(Me.WFMap.CurrentScale, Me.WFMap.ZoomLevelSet) 
  Me.WFMap.ZoomToScale(dblLowerScale) 
  Me.WFMap.Refresh() 
  
 This code work fine for zoomlevel 1 to 22 (scale=281,6161108). But if dblLowerScale has value of zoomlevel 23 (scale= 140,8080554) and I call map.ZoomToScale() nothing happens. Map.Scale is still value of zoomlevel 22. 
  
 Any ideas? 
  
 Thomas

Val,


I solved my problem. Map.MinimumScale property was set to 200. I changed it and my zoomlevels work fine.


Thomas


 



I am glad this is now working for you. Any other questions or doubts, we are here to help in the Discussion Forum. Thank you.