ThinkGeo.com    |     Documentation    |     Premium Support

Custom Zoom Levels

I'm looking at only using custom zoom levels in the system as we want to work with specific scales. How can I set a CustomZoomLevel to apply until another custom zoom level?


i.e. MyCustomizedZoomLevel. ApplyUntilZoomLevel = MyOtherCustomizedZoomLevel?


   ZoomLevel MyOutermostLevel = new ZoomLevel(100000d); 

 ZoomLevel MyInnermostLevel = new ZoomLevel(10000d); 



 //MyOutermostLevel.ApplyUntilZoomLevel = MyInnermostLevel;



only zoomlevel can not work, I guess you also need write your custom ZoomLevelSet, and set to layer.ZoomLevelSet.

I was told this isn’t possible currently. I think it was overlooked and will be added somehow in the next release.

Thanks for your sharing, Nelson! 
  
 Jeremy, 
  
 As Nelson said, we cannot do this currently if your CusomZoomLevelSet zoomlevel number is not matching our default one. We also notice this is some potential problem when we design our CustomZoomLevelSet API, hope we can make some enhancements in future. 
  
 Thanks. 
  
 Yale 


This is a serious problem. If we want to use our 1:250,000 topos or our 1:50,000 orthos, we want to specify by scale when they display. I thought this was standard practice as we used it in ESRI map objects and in ASP Map.Net along with all of the other mapping tool providers we have reviewed for development in the past. 
  
 Is James correct in the fact that we will need to create our own ZoomLevelSet to control this? or can we expect an update fixing this issue in the near future. (a month or two)?

Jeremy, 



I want to make things clear before we move forward. 



Currently, we can create our own customized ZoomLevelSet and hook it up to specified FeatureLayer. In fact, we already pre-created 2 ZoomLevelSets for easy to use : YahooMapZoomLevelSet and GoogleMapZoomLevelSet. In your own created ZoomLevelSet, you can specify the scales which ever is reasonable as you want. 



But the problem is the ZoomLevel number in your created ZoomLevelSet cannot surpass the 20 because the ApplyUntilZoomLevel did not provide customized options. 



I will report this problem to my director to see we will fix it in near future and I will let you know if any news coming. Sorry for the inconvenience. 



Thanks. 



Yale



Thanks for the feedback Yale. I’m afraid that this is one facility we have to have due to how we structure our geo referenced data for our clients.

Jeremy, 
  
 You are welcome and thanks for your reply! 
  
 Just curious, how many zoomlevels you want to have for your own created CustomZoomLevelSet?  And what is the basic rule to define those scales? 
  
 Thanks. 
  
 Yale 


What we want to do with MapSuite is write a MapEngine tool which will drive MapSuite based on a configuration file. Our Topos we would like to be visible from a scale of 1:300,000 (meters) to 1:80,000 (meters) our Orthos would be visible from 1:80,000 (meters) to 1:20,000 (meters) and from there on we would display our imagery. The imagery layer would be visible dependent on the resolution of the imagery itself and on whether or not we have overlapping imagery. We would then overlay this with whatever shapefiles we require for our clients. 
  
 The MapEngine would contain a configuration section that will allow us to quickly customize different map applications for different clients. Due to our clients needs and requests we always set our visibility of our layer based on scale.

Jeremy, 
  
 Above all, I just want to make sure you are trying to develop a Desktop App instead of a Web one? That would make some difference. 
  
 I try my best to understand your App situation. I think it is probably less than 20 scales: 
 Our Topos scale  
 Orthos Topos scale 
 Imagery Scale 
  
 If the App just focuses on the customized scales, I think the current version can be used to achieve without any change. The only thing is out of control is when your customized scales for each customized ZoomLevelSet exceed 20, then the scales more than 20 cannot be accessed. 
  
 Any all, I think your App is very sensible and it is probably can be achieved with MapSuite component. 
  
 Any more discussion will be welcome. 
  
 Thanks. 
  
 Yale 


No, the systems to be developed as an fully inclusive web application. So we will have a standard web mapping solution we offer to our clients, the solution has a secured login to a configuration manager that will generate the configuration data for map suite to run. The idea is that we can customize make changes to the configuration from anywhere. 
  
 Sorry I see now that I have posted this question in the desktop support section and not the Web Support section, though I still think my reasoning applies to a desktop app. 
  
 We generally wouldn’t need more that 20 customized scales, however I do have one solution in mind that will require more than 20. So I don’t really want to be limited to 20 specifically.

Jeremy, 
  
 Thanks for your reply! 
  
 I know that in WebEdition it can easily add customized scale from the Client side, that would be very different from Desktop Edition. 
  
 If you are very sure you just want to develop a web-based App, I suggest you create a new post with general idea description in WebEditon. I am sure the guys will give you more detailed answers. 
  
 Thanks. 
  
 Yale