A context menu for (usually right-click) LayerNodes in Layer trees.
Sample code showing how to include a default LayerNodeContextMenu. Optionally pass your own menu items.
.
.
{
xtype: 'hr_layertreepanel',
border: true,
.
.
FOR NOW: TODO: something smart with ExtJS plugins, for now pass only standard Menu Items.
contextMenu: [{xtype: 'hr_layernodemenuzoomextent'}, {xtype: 'hr_layernodemenustyle'}]);
},
{
// The MapPanel
xtype: 'hr_mappanel',
id: 'hr-map',
region: 'center',
.
.