[OpenLayers-Users] Change starting/initial base layer

Heidt, Christopher M. CHRISTOPHER.M.HEIDT at saic.com
Thu Nov 6 14:33:48 EST 2008


var layer1 = ... 
var layer2 = ...
var layer3 = ...
map.addLayers([layer1,layer2,layer3]);
map.setBaseLayer(layer3);

________________________________

From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org]
On Behalf Of Ian
Sent: Thursday, November 06, 2008 12:58 PM
To: users at openlayers.org
Subject: [OpenLayers-Users] Change starting/initial base layer


This seems like something that is possible or would have already been
answered, but I haven't found anything on it. I want to keep my base
layers in a set order and make the third base layer the default one on a
particular page. I went through the docs looking for some sort of
'isDefault' option on the layer but have yet to find a solution.

Thanks,
Ian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20081106/8f805907/attachment.html


More information about the Users mailing list