<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<blockquote
cite="mid:784FAC631C0CB14CAE68764151D5DA410B26D3AA@CORRIOL.icc.local"
type="cite">
<div class="WordSection1">
<p class="MsoNormal">In mapfish applications it was the
possibility to get an slider control to change opacity in
layer tree, just right click over layer name’s. This bahaviour
is very interesting for me, but i’m not idea how can I
reproduce it in geoext 1.0 application.<o:p></o:p></p>
<br>
</div>
</blockquote>
I added it to the layertreebuilder ux (Alexander Dube excellent
creation) using the contextmenuplugin,<br>
viz this edit to LayerTreeBuilder.js<br>
<br>
initComponent: function(){<br>
this.addEvents(this.CUSTOM_EVENTS);<br>
<br>
this.plugins = this.plugins || [];<br>
this.plugins.push({ptype: "gx_treenodecomponent"});<br>
this.plugins.push(new
GeoExt.ux.plugins.LayerTreeBuilderNodeAgent());<br>
this.plugins.push(new GeoExt.tree.ContextMenuPlugin({ <br>
sliderOptions:{<br>
aggressive: true,<br>
plugins: new GeoExt.LayerOpacitySliderTip()<br>
}<br>
})<br>
); <br>
GeoExt.ux.tree.LayerTreeBuilder.superclass.initComponent.call(this);<br>
if(!this.layerStore) {<br>
this.layerStore = GeoExt.MapPanel.guess().layers;<br>
}<br>
<br>
this.layerStore.on({<br>
"add": this.onLayerAdded,<br>
"remove": this.onLayerRemoved,<br>
scope: this<br>
});<br>
<br>
this.layerStore.treeBuilder = this;<br>
},<br>
<br>
See <a class="moz-txt-link-freetext" href="http://kite.gns.cri.nz/PBE/index.html#MAP:OPAConfig.json">http://kite.gns.cri.nz/PBE/index.html#MAP:OPAConfig.json</a> for
example in action.<br>
<p><span style="font-family:'Arial';font-size:8pt; color:#000000;">Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.</span></p>
<p><span style="font-family:'Arial';font-size:8pt; color:#000000;"> </span></p></body>
</html>