Class Dmp.Layer.TileLayer


Extends .
TileLayers. If a display property is changed, application MUST call [LAYER].refresh() or [MAP].refresh()

Class Summary
Constructor Attributes Constructor Name and Description
 
Dmp.Layer.TileLayer(id, connectionId, resourceName, params)
Method Summary
Method Attributes Method Name and Description
 
addCopyright(copyright)
Adds a copyright object to this layer
 
attr(property, val)
Sets 'property' if 'val' is provided, returns 'property' otherwise
 
getCopyrights(bounds, zoom)
 
abstract method of Google TileLayer
 
 
 
getTileUrl(tileXY, zoom)
abstract method of Google TileLayer
 
Adds the layer to the map.
 
abstract method of Google TileLayer
 
refreshes the display
 
Remove this layer from the Google map.
Class Detail
Dmp.Layer.TileLayer(id, connectionId, resourceName, params)
Parameters:
{String} id
{String} connectionId
{String} resourceName
{Object} params
Throws:
id/connectionId is null or not a string
Returns:
instance
Requires:
Method Detail
addCopyright(copyright)
Adds a copyright object to this layer
Parameters:
{Object} copyright
attr(property, val)
Sets 'property' if 'val' is provided, returns 'property' otherwise
Parameters:
{Object} property
{Object} val
Returns:
[property] if val is null
getCopyrights(bounds, zoom)
Parameters:
{Object} bounds
{Number} zoom
Returns:
the copyright information for the given bounds + zoom
getOpacity()
abstract method of Google TileLayer
Returns:
the opacity of this layer
getOverlay()
Returns:
the Google overlay of this layer
getResource()
Returns:
the ResourceReference of this layer
getTileUrl(tileXY, zoom)
abstract method of Google TileLayer
Parameters:
{Object} tileXY
{Object} zoom
Returns:
url for the currently display tiles
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
isPng()
abstract method of Google TileLayer
Returns:
true if the layer should be displayed as a PNG
refresh()
refreshes the display
remove()
Remove this layer from the Google map. Invoked by GMap2.removeOverlay() This method uses splice (array length will change after each remove)