Class Dmp.Layer.TileLayer
Extends
.
TileLayers. If a display property is changed, application MUST call [LAYER].refresh() or [MAP].refresh()
Constructor Attributes | Constructor Name and Description |
---|---|
Dmp.Layer.TileLayer(id, connectionId, resourceName, params)
|
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.
|
|
isPng()
abstract method of Google TileLayer
|
|
refresh()
refreshes the display
|
|
remove()
Remove this layer from the Google map.
|
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)