[Users] How to register different "dblclick" listener on BaseLayerContainer and OverlayLayerContainer
Yingqi Tang
anakintang at gmail.com
Tue May 3 07:20:19 CEST 2011
Hi all,
In my GeoExt web app I have created a TreePanel, in which I have both a
BaseLayerContainer and OverlayLayerContainer as its children. This is the
JSON config:
layerTreeJsonConfig = [
{ // baselayer container
nodeType: "gx_baselayercontainer",
text: 'basemap'
},
{ // overlayer container
nodeType: "gx_overlaylayercontainer",
text: 'overlays',
expanded: false,
// render the nodes inside this container with a radio button,
// and assign them the group "overlayers".
loader: {
baseAttrs: {
radioGroup: "overlayers",
uiProvider: "layernodeui"
}
}
}
];
I know and I was able to register "dblclick" listener on the TreePanel, now
my question is whether there is a way to register different event handler on
those two different layer container? The reason I am asking is that I am
trying to another custom layer container which inherits from
OverlayLayerContainer, and I would like wrap some event handler inside that
custom layer container instead of adding it on TreePanel for all.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110502/9468af6c/attachment.htm
More information about the Users
mailing list