[OpenLayers-Dev] Layers into Groups

Jachym Cepicky jachym.cepicky at gmail.com
Tue Oct 16 11:11:56 EDT 2007


Hi,

implemented. Everything in one patch [1], for examples see [2] and [3],
see ticket #1086 [4] for details

Jachym

[1]
http://trac.openlayers.org/attachment/ticket/1086/LayerSwitcher.js.diff
[2]
http://dev.openlayers.org/sandbox/jachym/openlayers/examples/layer-buttons.html
[3]
http://dev.openlayers.org/sandbox/jachym/openlayers/examples/layer-groups.html
[4] http://trac.openlayers.org/ticket/1086

Lorenzo Becchi píše v Po 15. 10. 2007 v 13:57 +0200:
> Cool Jachym.
> 
> that's a good idea.
> It can even represent the complete structure of a WMS GetCapabilites 
> (read: WMS Manager [1]).
> 
> At the code sprint in Victoria, we where talking with Chris about the 
> possibility to add few features to LayerSwticher. This could be one.
> other possible attribute wired features:
> - "buttonDropLayer" : true //activate a button to let the user drop the 
> layer from map and layerSwitcher
> - "buttonZoom2Extent" : true //show a button to zoom to layer extent
> - "buttonOpacity" : true //show two buttons change layer opacity
> - "buttonMoveLayer" : true //show two buttons to move layers up or down 
> in the overlay list (this could collide with your structure)
> 
> this are the buttons that could apply to all type of layers.
> button could be just a div where all styles are defined inside the CSS.
> 
> if you and others agree we can expand your Ticket or make another that 
> can manage all points. Or make a lots of tickets...
> ciao
> Lorenzo
> 
> ps: btw, your patch doesn't work on Safari 2.
> 
> [1] *http://tinyurl.com/2fjbr7*
> 
> 
> 
> Jachym Cepicky wrote:
> > 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/20071016/26f27df2/attachment.bin


More information about the Dev mailing list