[Users] Change order base layers of gx_baselayercontainer

Sarah Schuessler sarah_flip at yahoo.de
Fri Apr 29 13:41:51 CEST 2011


Hi,

you mixed options and params at your Layer.WMS.

HTH
Sarah



----- Ursprüngliche Mail ----

Hi,

I've done, but the result is the same, and layer continue visible and active.

    var createLayers = function() {
        return [
          new OpenLayers.Layer.WMS(
            lyrOrto, "http://mytilecache.com/tilecache/tilecache.py?",
            {layers: 'orto', format:"image/jpeg", isBaseLayer: true},
            {visibility: false}
          ),
        ....

Thanks,

Toni.

-----Missatge original-----
De: andreas.hocevar at gmail.com [mailto:andreas.hocevar at gmail.com] En nom de 
Andreas Hocevar
Enviat: viernes, 29 de abril de 2011 11:14
Per a: Vidal, Antoni
A/c: users at geoext.org
Tema: Re: [Users] Change order base layers of gx_baselayercontainer

There is currently no option to flip the layer order in
LayerContainers. You can, however, configure one of your base layers
with "visibility: false", so it won't be active.

Hope this helps,
Andreas.

On Tue, Apr 26, 2011 at 6:01 PM, Vidal, Antoni <antoni.vidal at icc.cat> wrote:
> Hi list,
>
>
>
> I've two base layers, they are part of a gx_baselayercontainer nodetype
> inside an Ext.Viewport. These layers are ordered backward that they are
> created. That's my problem because if I change the order when create the
> layers, then active layer is not the one I want.
>
>
>
> Somebody knows how to change the order of base layers in a
> gx_baselayercontainer?
>
>
>
> Thanks in advance.
>
>
>
> Antoni Vidal
>
> Unitat d'Aplicacions SIG-WEB
> Institut Cartogràfic de Catalunya
> Parc de Montjuïc, E-08038 Barcelona
> Tel. (+34) 93 567 15 00 (ext. 3228)
> www.icc.cat
>
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
>



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list