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.
 
 
Adds the layer to the map.
 
redraw(force)
re-draws this layer on the map when needed
 
forces this layer to re-draw invoked by the application
 
remove(map)
Remove this layer from the Google map.
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: GoogleMapComposition.js.
Parameters:
{XML Dom} jqDom
Throws:
jqDom is not an xml dom
Returns:
key-value pair dictionary
getChildById(id)
Parameters:
id
Returns:
a ResourceReference (layer's child) with a matching ID
initialize()
Adds the layer to the map. Invoked by GMap2.addOverlay() Adds a reference of itself to DMPLayers. DMPLayers is a custom layer Collection on the map
Parameters:
{Object} map.
Google map object
redraw(force)
re-draws this layer on the map when needed
Parameters:
{Boolean} force
refresh()
forces this layer to re-draw invoked by the application
remove(map)
Remove this layer from the Google map. Invoked by GMap2.removeOverlay() This method uses splice (array length will change after each remove)
Parameters:
{Object} map