Hi Jachym, for me on XP and Firefox 2.0.0.8 this appears quite unresponsive, even though after a bit of clicking something eventually happens. I am not sure about the graphical solution as I do not really know when a layer is switched on or off.
A while ago I experimented a bit with a custom layer switcher outside the map window, it still seems to be working at http://www.yunnanexplorer.com/mars.html There were several ideas in it: First of all ignore the tick-boxes -- they flicker a layer on and off. This is not very intuitive. I thought once having a special effects div hidden with every layer that could be turned on and off. Flickering a layer, moving a sliding window over a layer, inverting colours, image stretching could all go in there. Never followed through. The sliders allow to adjust transparency of a layer: red all the way to the left is off, green is 100% opaque. The rest somewhere in the middle: good way if you want to look at data in more than one map at a time. Furthermore it is possible to drag the layers up and down, changing the stacking/drawing order. I know that conflicts with the baselayer concept of OL. These effects were done with scriptaculous and do not really work that well under IE, but someone with more patience/time than me could probably make them work. It is now over a year old and I have not done any work on it, so some of the layers have ceased to function. I think building better/different layer switchers, particularly with grouping, is quite important... Ludwig On 23/10/2007, Jachym Cepicky <[EMAIL PROTECTED]> wrote: > > 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 > > [email protected] > > http://openlayers.org/mailman/listinfo/dev > -- > Jachym Cepicky > e-mail: [EMAIL PROTECTED] > URL: http://les-ejk.cz > GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub > > > _______________________________________________ > Dev mailing list > [email protected] > http://openlayers.org/mailman/listinfo/dev > > >
_______________________________________________ Dev mailing list [email protected] http://openlayers.org/mailman/listinfo/dev
