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 |
# 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
# getLayers() → {Array.<BaseLayer>}
Retrieves an array with all layers of the map.
Array of layers
# hideVexcelSources(layerSources)
Sets the sources for removing in the base Vexcel Layer
Parameters:
| Name | Type | Description |
|---|---|---|
layerSources |
Array.<string> | List of layer sources to remove |
# 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 |
# showVexcelSources(layerSources)
Sets the sources for the base Vexcel Layer to the specified list, removing all others
Parameters:
| Name | Type | Description |
|---|---|---|
layerSources |
Array.<string> | List of layer sources to keep |