[OpenLayers-Users] Displaying Base layers by Zoom Scale

Alexandre Dube adube at mapgears.com
Thu Apr 15 09:18:37 EDT 2010


Anthony,

Take a look at the minScale/maxScale and/or minResolution/maxResolution 
properties of the Layer object. This might be enough to accomplish what 
you're looking for. See also [1] for an example of use (isn't really 
used in the example, but looking at the code source will show how to 
define them).

Alexandre


Odeneho wrote:
> Hi,
>
> I am developing an openlayers application with data from geoserver. I have 5
> wms baselayers which I would like to display base on a users zoom scale
> instead of having the layerSwitcher added to the map control. How can it be
> achieved without the layerswitcher?
>
> Thanks in advance.
>   


-- 
Alexandre Dubé
Mapgears
www.mapgears.com




More information about the Users mailing list