Class Dmp.Layers.Layer
Constructor Attributes | Constructor Name and Description |
---|---|
Dmp.Layers.Layer(name, versionId)
Contains data about the layer.
|
Method Attributes | Method Name and Description |
---|---|
getImageUrl(params, succCallback, errCallback)
Constructs a URL suitable for a getMap.aspx request
callbacks are utilized if tempCache is used
|
|
Getting Legend Image: To display on the legend UI or on the printed map
|
|
getQueryEngine(none)
creates a new query engine and binds it to this LayerReference(object)
|
|
getSchema(none)
returns the schema of the layerNode
|
|
load(successCallback, errCallback)
similar function to loadNode.
|
|
loadNode(layerNode)
sets the properties of the LayerReference based on the given dom
|
|
locate(posObj, succCallback, errCallback)
Used during the 'identify' sequence.
|
|
setMetadata(jqDom)
Stores the layer's metadata
|
Method Detail
getImageUrl(params, succCallback, errCallback)
Constructs a URL suitable for a getMap.aspx request
callbacks are utilized if tempCache is used
- Parameters:
- {Object} params
- (bounding properties and tileId if it's a tile layer)
- {function} succCallback
- {function} errCallback
- Returns:
- URL for a getMap request with all the LayerReference's properties taken into account
getLegendModel()
Getting Legend Image: To display on the legend UI or on the printed map
{queryEngine}
getQueryEngine(none)
creates a new query engine and binds it to this LayerReference(object)
- Parameters:
- none
- Returns:
- {queryEngine} q
{Array}
getSchema(none)
returns the schema of the layerNode
- Parameters:
- none
- Returns:
- {Array}
load(successCallback, errCallback)
similar function to loadNode. Sets properties on the LayerReference(object) based on the layer metadata
- Parameters:
- {Object} successCallback
- {Object} errCallback
- See:
- loadNode
loadNode(layerNode)
sets the properties of the LayerReference based on the given dom
- Parameters:
- {xml dom} layerNode
{QueryEngine}
locate(posObj, succCallback, errCallback)
Used during the 'identify' sequence. Makes an Identify.aspx request
- Parameters:
- {Object} posObj
- {function} succCallback
- {function} errCallback
- Returns:
- return isn't utilized, logic is carried in the callbacks
setMetadata(jqDom)
Stores the layer's metadata
- Parameters:
- {dom} jqDom