Hello,Here's one ContextMenuPlugin I used in a project a while ago to delete or change the opacity of a layer. The items of the context menu appear only if the layer has the required parameters (see in code). Edit it as you feel.
Adding it as a plugin of the LayerTreeBuilder should work.Since this kind of menu is kinda too "user-customizable", I hesitated in adding it in the LayerTreeBuilder repository, but I guess it wouldn't hurt to have something generic. If you want to work on that, you're welcome to send a patch.
Kind regards, Alexandre On 11-06-30 02:29 AM, gbrun wrote:
Maybe you can can find something interesting here: http://opengeo.github.com/gxp/lib/plugins/LayerTree.html I know, it isn't the classical GeoExt library, but it should work with it. I didn't try it, but it seems to answer your needs! Geoffrey On Thu, 30 Jun 2011 04:24:41 +0200, Adam Ratcliffe<a...@prema.co.nz> wrote:Sorry Phil, haven't had any experience with that plugin in particular. Cheers Adam On 30/06/2011, at 2:16 PM, Phil Scadden wrote:The messages in question are http://www.geoext.org/pipermail/users/2011-March/002140.html and the code of concern is: this.plugins.push(new GeoExt.tree.ContextMenuPlugin({ sliderOptions:{ aggressive: true, plugins: new GeoExt.LayerOpacitySliderTip() } }) ); 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. _______________________________________________ Users mailing list Users@geoext.org http://www.geoext.org/cgi-bin/mailman/listinfo/users_______________________________________________ Users mailing list Users@geoext.org http://www.geoext.org/cgi-bin/mailman/listinfo/users
-- Alexandre Dubé Mapgears www.mapgears.com
ContextMenuPlugin.js
Description: application/javascript
_______________________________________________ Users mailing list Users@geoext.org http://www.geoext.org/cgi-bin/mailman/listinfo/users