[OpenLayers-Users] Base Layer made up of multiple layers

Justin Madex justin.83 at gmail.com
Tue May 6 01:34:55 EDT 2008


Hi,

I want to have a base layer that is made up of three layers, the relevant
layer showing depending on what scale we are zoomed in at.
Example:
var base = [
new OpenLayers.Layer.WMS( "map_1", WMS_URL, {layers: 'map_1', format:
'image/png' }),
new OpenLayers.Layer.WMS( "map_2", WMS_URL, {layers: 'map_2',format:
'image/png'},
{minScale: 5000,maxScale: 500,units:'degrees'}),
new OpenLayers.Layer.WMS( "map_3", WMS_URL, {layers: 'map_3,format:
'image/png'},
{minScale: 500,units:'degrees'})
];

Is there a way i can change the base layer as i zoom in on the map?

Thanks for your help

Justin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080506/29439a93/attachment.html


More information about the Users mailing list