Hi developers,
I have implemented ordering map layers into groups [1]. You have to
specify new layer attribute group:"Group Name", e.g.:

 var dm = new OpenLayers.Layer.WMS( "DM Solutions Transit",
                "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap";,
                {layers: "rail,road",
                 transparent: "true", format: "image/png"
                },
                {                 
                  group:"Transit"
                });

You can define group hierarchy using "/" mark:

....
group: "Transit/Roads"
....

Only changed file is LayerSwitcher.js

For example see [2]

Hope, you'll like it

Jachym

[1] http://trac.openlayers.org/ticket/1086
[2]
http://dev.openlayers.org/sandbox/jachym/openlayers/examples/layer-groups.html
-- 
Jachym Cepicky
e-mail: [EMAIL PROTECTED]
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

Attachment: signature.asc
Description: Toto je digitálně podepsaná část zprávy

_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev

Reply via email to