Class deCarta.Mobile.MapLayer
A MapLayer represents a tile set that can be displayed on the map. Tiles are addressed by their North, East and Zoom parameters. Map layers can be customized by setting a specific tile store to get the tiles from (a street view tile, a satellite tile, whatever you come up with) There is no limit, other than performance, to the number of layers that can be added to a map.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
deCarta.Mobile.MapLayer(options)
A tile set that can be displayed on the map
|
| Method Attributes | Method Name and Description |
|---|---|
|
hide()
Hides the layer from view.
|
|
|
render(tileGrid)
Renders the map.
|
|
|
show()
Sets the layer as visible.
|
Class Detail
deCarta.Mobile.MapLayer(options)
A tile set that can be displayed on the map
- Parameters:
- {object} options
- Each layer is initilized with a set of options.
options:
{ tileStore : the tile store that will provide tiles for this layer. defaults to street. name: the layer's name visible: visibility attribute for the layer }
Method Detail
hide()
Hides the layer from view.
render(tileGrid)
Renders the map.
Should not be called directly. Renderings are controlled by the Map object.
- Parameters:
- tileGrid
show()
Sets the layer as visible.