Class Dmp.Layer.WMSLayer


Extends .
Acts as a wrapper around a document element (img tag). The document element is added to Bing map control

Class Summary
Constructor Attributes Constructor Name and Description
 
Dmp.Layer.WMSLayer(id, connectionId)
Method Summary
Method Attributes Method Name and Description
 
addChild(id, resourceName, style)
Links the layer to a resource
 
attr(property, val)
Sets 'property' if 'val' is provided, returns 'property' otherwise will call all observers listening to 'property' (if any)
 
bind(funct)
API to attach a listener to "onPropertyChange" event.
<static>  
Dmp.Layer.WMSLayer.domToDict(jqDom)
Converts an xml Dom to a Dictionary.
 
draw()
Constructs a single GetMap request for all resourceReferences associated with this Map Layer where "isVisible()" returns true Potentially 5 properties are sent in the request Layer (mandatory per child), SLD (mandatory per child), attributeLinks(optional per child), query(optional per child), viewInTime(optional per request)
 
 
forces this layer to re-draw invoked by the application
Class Detail
Dmp.Layer.WMSLayer(id, connectionId)
Parameters:
{String} id
{String} connectionId
{xml dom} jqDom.
Optional
Throws:
id is null or not a string, connectionId is null or not a string
Returns:
instance
Requires:
Method Detail
addChild(id, resourceName, style)
Links the layer to a resource
Parameters:
{String} id
{String} resourceName
{String} style
{Object} params.
JSON object or xml dom
Throws:
id is null, id is not a string
attr(property, val)
Sets 'property' if 'val' is provided, returns 'property' otherwise will call all observers listening to 'property' (if any)
Parameters:
{String} property
{Object} val
Returns:
'property' if 'val' is null
bind(funct)
API to attach a listener to "onPropertyChange" event. The attached function is responsible for filtering what properties to take action on. All properties that change will throw an "onPropertyChange" event. The callback function will be parameterized with ('onPropertyChange', {property, val})
Parameters:
{String} property.
The property to observe on
{Function} funct
Throws:
property is null or not a string, funct is not a function
<static> Dmp.Layer.WMSLayer.domToDict(jqDom)
Converts an xml Dom to a Dictionary. Used during 'map.load'
Defined in: BingMapComposition.js.
Parameters:
{XML Dom} jqDom
Throws:
jqDom is not an xml dom
Returns:
key-value pair dictionary
draw()
Constructs a single GetMap request for all resourceReferences associated with this Map Layer where "isVisible()" returns true Potentially 5 properties are sent in the request Layer (mandatory per child), SLD (mandatory per child), attributeLinks(optional per child), query(optional per child), viewInTime(optional per request)
getChildById(id)
Parameters:
id
Returns:
a ResourceReference (layer's child) with a matching ID
refresh()
forces this layer to re-draw invoked by the application