Inherits from: | oscar.Control |
Description: This control will allow the user to view metadata from the layers in the active theme.
oscar. | |
Properties | |
gui | The html document the dialog for this control uses. |
type | {OpenLayers.Control.TYPES} |
mdContainer | The container array for the meta data containers |
source | The callback url to obtain the layer meta data. |
Functions | |
oscar. | |
activate | Activates the control |
deactivate | Deactivates the control |
buildDialog | AJAX callback method to build the user interface for the dialog. |
createDialog | Entry method to to create the dialog |
_getInterface | Starts the Ajax process to get the gui interface for the dialog. |
_setUIProperties | Used to set any UI properties for display |
_addThemeLayers | Creates the container objects for meta data display |
_requestMetaData | Starts the request for each container to obtain meta data. |
_applyMetaData | Adds the layers to the gui and binds the meta data to the containers. |
_viewMetaData | Activates the layer and displays the metadata associated with it. |
_finishedLoading | Keeps track of the containers load process. |
oscar. | Description: A container for metadata information and loading. |
Properties | |
loading | {Boolean} Whether the container is still loading. |
connectionName | {String} The name of the connection |
dataLayers | {Array} Contains the names of the data layers. |
layer | References the WMS layer in the theme. |
parent | {oscar.Control.MetaData} The parent control. |
Functions | |
oscar. | Create a new metadata container |
isLoading | Returns {Boolean} is the layer container is still loading. |
makeRequest | Makes an ajax request to the source |
buildParameterList | Creates the query string based on the data layers of the container. |
success | What to do on a successful ajax call. |
failure | What to do when the ajax request fails. |
Properties | |
CLASS_NAME | {String} The name of the class. |
Description: A container for metadata information and loading.
Properties | |
loading | {Boolean} Whether the container is still loading. |
connectionName | {String} The name of the connection |
dataLayers | {Array} Contains the names of the data layers. |
layer | References the WMS layer in the theme. |
parent | {oscar.Control.MetaData} The parent control. |
Functions | |
oscar. | Create a new metadata container |
isLoading | Returns {Boolean} is the layer container is still loading. |
makeRequest | Makes an ajax request to the source |
buildParameterList | Creates the query string based on the data layers of the container. |
success | What to do on a successful ajax call. |
failure | What to do when the ajax request fails. |
Properties | |
CLASS_NAME | {String} The name of the class. |
Activates the control
activate:function()
Deactivates the control
deactivate:function()
AJAX callback method to build the user interface for the dialog.
buildDialog:function( userinterface )
Entry method to to create the dialog
createDialog:function()
Starts the Ajax process to get the gui interface for the dialog.
_getInterface:function()
Used to set any UI properties for display
_setUIProperties:function()
Creates the container objects for meta data display
_addThemeLayers:function()
Starts the request for each container to obtain meta data.
_requestMetaData:function()
Adds the layers to the gui and binds the meta data to the containers.
_applyMetaDataResponse:function( metaData, container )
Activates the layer and displays the metadata associated with it.
_viewMetaData:function( div )
Keeps track of the containers load process.
_finishedLoading:function()
Returns {Boolean} is the layer container is still loading.
isLoading:function()
Makes an ajax request to the source
makeRequest:function( source )
Creates the query string based on the data layers of the container.
buildParameterList:function()
What to do on a successful ajax call.
success:function( transport )
What to do when the ajax request fails.
failure:function( transport )