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
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to