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 |
object | 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.<object> | Array of layers to add |
# getDrawingLayer() → {object}
Returns the vector layer used for vector drawing.
Drawing layer
# getLayerById(id) → {object}
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
# getLayers() → {Array.<object>}
Retrieves an array with all layers of the map.
Array of layers
# getVexcelLayer(name) → {object}
Gets the collection layer with the same name as the specified in the 'name' parameter.
Parameters:
Name | Type | Description |
---|---|---|
name |
string.<BuiltInLayer> | The name of the layer to be returned. |
Vexcel layer
# getVexcelLayers() → {Array.<object>}
Retrieves an array with all Vexcel layers of the map.
Vexcel layers
# removeLayer(layer)
Removes the given layer from the map.
Parameters:
Name | Type | Description |
---|---|---|
layer |
object | Layer to remove |
# removeLayers(layers)
Removes the given layers from the map.
Parameters:
Name | Type | Description |
---|---|---|
layers |
Array.<object> | Layers to remove |