Classes
Methods
# addLayer(layer)
Adds the given layer to the map. This layer will display on top of any existing layers.
Parameters:
Name | Type | Description |
---|---|---|
layer |
BaseLayer
|
Layer to add |
# addLayers(layers)
Adds the given layers to the map. Added layers will display on top of any existing layers.
Parameters:
Name | Type | Description |
---|---|---|
layers |
Array.<BaseLayer>
|
Array of layers to add |
# getAOILayers() → {Array.<any>}
Retrieves an array with all Vexcel layers of the map.
Vexcel layers
Array.<any>
# getLayerById(id) → {BaseLayer}
Gets the layer with the same id as the specified in the 'id' parameter.
Parameters:
Name | Type | Description |
---|---|---|
id |
number
|
The id of the layer to be returned. |
Layer
BaseLayer
# getLayers() → {Array.<BaseLayer>}
Retrieves an array with all layers of the map.
Array of layers
Array.<BaseLayer>
# getVexcelLayer(name) → {VexcelLayer}
Gets the collection layer with the same name as the specified in the 'name' parameter.
Parameters:
Name | Type | Description |
---|---|---|
name |
string
|
The name of the layer to be returned. |
Vexcel layer
VexcelLayer
# getVexcelLayers() → {Array.<VexcelLayer>}
Retrieves an array with all Vexcel layers of the map.
Vexcel layers
Array.<VexcelLayer>
# removeLayer(layer)
Removes the given layer from the map.
Parameters:
Name | Type | Description |
---|---|---|
layer |
BaseLayer
|
Layer to remove |
# removeLayers(layers)
Removes the given layers from the map.
Parameters:
Name | Type | Description |
---|---|---|
layers |
Array.<BaseLayer>
|
Layers to remove |