MMapLayer
The MMapLayer
class is a container class responsible for creating and managing layers on the map.
Creating a layer
// Creating a map
const map = new MMap(...);
// Creating a layer
const layer = new MMapLayer(...);
// Adding the layer to the map
map.addChild(layer);
Example of adding a layer to the map.
Constructor
new MMapLayer(props
)
Constructor parameters
Parameter |
Type |
Description |
|
Value of input |
Inherited from
Props
MMapLayerProps: Object
Parameters
Name |
Type |
Description |
|
|
ID of the layer for managing the order in the parent group. |
|
|
Layer ID. |
|
Method for determining a custom layer implementation. |
|
|
{ |
Layer parameters. |
|
- |
|
|
|
Layer source. |
|
|
Layer type. Use "ground" for tile data sources. |
|
|
Z-index of the layer for managing the order of layers. Default value: 1500. |
Methods
update
update(changedProps
): void
Method of updating object props.
Parameters
Parameter |
Type |
Description |
|
|
New |
Returns
void