ThinkGeo.com    |     Documentation    |     Premium Support

Set starting zoomlevel for wms layer (WmsRasterLayer / WmsOverlay)

Hello,


if have an wms layer with very much and detailed data. So I can see the layer only at very high zoom level. If the zoom level of the map is not very high - the layer load and load, but show nothing. It is possible to say the WmsRasterLayer or WmsOverlay, that the wms layer should drawn only from zoom level 16 to 20 for example (like I can do this for ShapeFileFeatureLayer?). Because I have very long loading time for zoom level 1 to 15...


Anke



Anke, 


RasterLayer does not have a ZoomLevelSet, but it has got 2 properties LowerThreshold and UpperThreshold, to set a simple ZoomLevel. Please see the attached sample “UseWmsRasterLayer” for detail.
 
Also just let you know if the WMSOverlay is a base overlay, you can limit the available ZoomLevel to certain extent. Please see the attached sample “UseWmsOverlay”.
 
Ben 

252-Post5039.zip (13.3 KB)