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
Array.<BaseLayer>