[Users] How to reference layer metadata from a treenode?
Robert Buckley
robertdbuckley at yahoo.com
Mon Mar 26 13:56:19 CEST 2012
Hi
GEOEXT-1.1
OPENLAYERS 2.11
I am using the following to load layers into my treepanel...
{
nodeType: "gx_overlaylayercontainer",
id: "gx_ovContainer_fnp_bsk",
text: "Layer FNP",
expanded: false,
loader: {
filter: function(record){
return record.get("layer").options.themeId == "fnp_bs";
}
}
}
What I would like to do is add 2 additional options to the layer config called "metadata" and "status" (These text strings could then contain simple abstract about the layer and also the the status which in my case would be a date). I would then like to reference these options and display them in a window or msgbox through a contextmenu with a right click the layer node.
My problem lies in how to reference the layer options. Using var selectedNode = tree.getSelectionModel().getSelectedNode(); I can reference the "text" option of the layer, but not the status or metadata option.
can anyone see where I should be looking to achieve this?
yours,
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120326/5f2cd76a/attachment.htm
More information about the Users
mailing list