LayersCollectionInheritance: Layer > LayersCollection The LayersCollection class stores a collection of layers. In order to add a layer to the map, you should use the LocalVectorLayer or RemoteVectorLayer to store the shapes you would like to show on the map. See understanding the layers architecture Summary
addLayer
Adds a new layer to the existing layers collection. Parameters
See AlsocreateLocalVectorLayer
Creates a new local vector layer and add it as a child of the existing layers collection. Parameters
ReturnsA reference to the newly created local vector layer. See AlsocreateRemoteVectorLayer
Creates a new remote vector layer and add it as a child of the existing layers collection. Parameters
ReturnsA reference to the newly created remote vector layer. See AlsogetLayerByName
Returns a reference to the layer instance with the specified name, or null if there is no layer with the specified name. Parameters
ReturnsA reference to the layer instance, or null if there is no layer with the specified name. See Also |
|
|
|
|
|
|
Array[] Layer getLayers() |