Wrap and configure an OpenGeo GXP LayerTree.
Configuration properties in addition to those listed for Ext.Panel.
String How should the layer names be sorted in the selector, ‘ASC’, ‘DESC’ or null (as Map order)? default value is ‘ASC’ (Alphabetically Ascending).
Public methods in addition to those listed for Ext.Panel.
Parameters: |
|
---|
Asyncronously retrieves a layer record given a basic layer config. The callback will be called as soon as the desired layer source is ready. This method should only be called to retrieve layer records from sources configured before the call.
Parameters: | layerRec – GeoExt.data.LayerRecord the layer to get the source for. |
---|
Parameters: | roles – String|Array optional, default is “ROLE_ADMINISTRATOR”. If an array is provided, this method will return if any of the roles in the array is authorized. |
---|---|
Returns: | Boolean The user is authorized for the given role. |
Returns true if the client is authorized with the provided role. In cases where the application doesn’t explicitly handle authentication, the user is assumed to be authorized for all roles. This results in authentication challenges from the browser when an action requires credentials.
Parameters: | record – GeoExt.data.LayerRecord` Layer record. Call with no layer record to remove layer selection. |
---|---|
Returns: | Boolean Layers were set as selected. |
TODO: change to selectLayers (plural)
Events in addition to those listed for Ext.Panel.
Fired before the selected set of layers changes. Listeners can return false to stop the selected layers from being changed.
Listeners arguments:
Fired when the selected set of layers changes.
Listeners arguments:
Fires after the portal is initialized.
Fires when application is ready for user interaction.