MMapDefaultFeaturesLayer
The MMapDefaultFeaturesLayer
class is a visual component that adds the data source and the geo object layer (polygons, polylines, points, placemarks) to the map. It also adds a layer for displaying DOM elements.
Creating a layer
const defaultFeaturesLayer = new MMapDefaultFeaturesLayer();
// add to the map
map.addChild(defaultFeaturesLayer);
// update
defaultFeaturesLayer.update({zIndex: 1501});
Constructor
new MMapDefaultFeaturesLayer(props
, options?
)
Constructor parameters
Parameter |
Type |
Description |
|
Value of input |
|
|
Optional object parameters. |
Inherited from
new MMapDefaultFeaturesLayer(props
, children?
, options?
)
Constructor parameters
Parameter |
Type |
|
|
|
|
|
|
Inherited from
Props
MMapDefaultFeaturesLayerProps: Object
Parameters
Parameter |
Type |
Description |
|
|
Name for source |
|
|
Should show layer. Default is true |
|
|
Layer z-index |
Methods
update
update(changedProps
): void
Method of updating object props.
Parameters
Parameter |
Type |
Description |
|
|
New |
Returns
void