[OpenLayers-Dev] Layers into Groups
Jachym Cepicky
jachym.cepicky at gmail.com
Tue Oct 23 13:58:42 EDT 2007
Hi,
could anybody of you, guys, have a look at new "custom LayerSwitcher"
example [1] ?
I hope, it works on all platforms
Comments are more then welcomed
Jachym
P.S. You will have to probably zoom to Canada, go get all layers work
[1]
http://dev.openlayers.org/sandbox/jachym/openlayers/examples/layerswitcher.html
Jachym Cepicky píše v Po 15. 10. 2007 v 13:20 +0200:
> 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
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
--
Jachym Cepicky
e-mail: jachym.cepicky at gmail.com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20071023/3d716e5d/attachment.bin
More information about the Dev
mailing list