default layer before initial map
display
To: users@openlayers.org
Message-ID: 91f4403121e140f78eaf096f75bdb...@spoirierdell
Content-Type: text/plain; charset=iso-8859-1
Hi All,
With the following code, I created a few google layers. Google streets gets to
be the default. Now, how can I change
Hello,
I think you just have to change the order when you add layers to map:
map.addLayers([googlestreetsLayer,googlephysicalLayer,...]);
to:
map.addLayers([googlephysicalLayer,googlestreetsLayer,...]);
2009/8/31 stephane.poir...@usherbrooke.ca
Hi All,
With the following code, I created
@openlayers.org
Subject: Re: [OpenLayers-Users] switching default layer before initial map
display
Hello,
I think you just have to change the order when you add layers to map:
map.addLayers([googlestreetsLayer,googlephysicalLayer,...]);
to:
map.addLayers([googlephysicalLayer,googlestreetsLayer
Hi All,
With the following code, I created a few google layers. Google streets gets to
be the default. Now, how can I change the default layers to be, say, the google
hybrid map?
if(myepsg==EPSG:900913)
{
googlestreetsLayer=new OpenLayers.Layer.Google(Google
Streets,{sphericalMercator: