Telogis.GeoBase.MapLayers.LayerCollection |
A wrapper class that contains multiple map layers so that they can be treated as a single layer. While such a collection can be referenced by ID, it is not bound to any specific map.
Name | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
MapLayers.LayerCollection(config) | Arguments
|
Name | Description |
---|---|
add (String layer) | Adds a layer to the collection. Arguments
MapLayers.AbstractLayer - A reference to the layer just added, or null if it could not be found. If the method was given a LayerCollection, nothing is returned. |
destroy () | Frees resources used by the layer collection by destroying each of the layers it contains. |
remove (String layer) | Removes a layer from the collection. Arguments
MapLayers.AbstractLayer - A reference to the layer just removed, or null if it could not be found. If the method was given a LayerCollection, nothing is returned. |
setMap (string map) | Sets the map that all the MapLayers.LayerCollection's layers lie on by calling MapLayers.AbstractLayer.setMap method of each. Arguments
|
top (Class Type, Function filter) | Gets a reference to the layer of the specified type that was most recently added to this MapLayers.LayerCollection. Arguments
MapLayers.AbstractLayer - A reference to the topmost layer that is an instance of MapLayers.LayerCollection.top.Type. |
update (Number updateType) | Updates each layer in the collection if the map is invalidated. Arguments
|
Name | Type | Description |
---|---|---|
id | String | The string identifier used to refer to this layer in the MapLayers hash, much the same as the regular MapLayers.AbstractLayer.id. |