[Users] Opacity Slider in layer tree as context menu
Andreas Hocevar
ahocevar at opengeo.org
Fri Nov 4 09:16:46 CET 2011
Hi,
look at http://dev.geoext.org/trunk/geoext/examples/tree-legend.html and replace the gx_wmslegend with a gx_opacityslider.
Andreas.
On Nov 4, 2011, at 08:40 , <Peter.Jehle at tba.llv.li> wrote:
> Hi all
>
> I know that there has been a discussion about opacity slider in the layer tree.
> I found a thread with a code example for the layertreebuilder ux of Alexandre Dube and an contextmenu plugin.
> But know, this example seems to work with a treepanel constructor.
> Since i use the LayerContainer constructor of geoext and not a treepanel constructor, I have no idea about how to bind the plugin to the code
> Here's the code , I use:
>
> var overlay = new GeoExt.tree.LayerContainer({
> text : 'themes',
> leaf : false,
> expanded : true,
>
> // contextmenu: [ new GeoExt.tree.ContextMenuPlugin({
> // sliderOptions: {aggressive: true}
> // })],
>
> loader : {
> filter : function(record) {
> var isOK = false;
> if ( ! record.get("layer").isBaseLayer && (record.get("layer").name.indexOf("suchen") == - 1) ) {
> isOK = true;
> }
> return isOK;
> }
> }
> }
> );
>
>
> Is there any simple example on how to use the layer opacity slider in the layer tree?
> There's also on ticket #209 in geoext. Is this component already in the pipeline?
>
> Regard's and thanks for any help
>
> Peter
>
>
> _______________________________________________
> 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.
More information about the Users
mailing list