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

props

MMapDefaultFeaturesLayerProps

Value of input props.

options

ComplexOptions<MMap>

Optional object parameters.

Inherited from

MMapComplexEntity.constructor

new MMapDefaultFeaturesLayer(props, children?, options?)

Constructor parameters

Parameter

Type

props

MMapDefaultFeaturesLayerProps

children?

GenericEntity<unknown, {}, MMap>[]

options?

Omit<ComplexOptions<MMap>, "children">

Inherited from

MMapComplexEntity.constructor

Props

MMapDefaultFeaturesLayerProps: Object

Parameters

Parameter

Type

Description

source?

string

Name for source

visible?

boolean

Should show layer. Default is true

zIndex?

number

Layer z-index

Methods

update

update(changedProps): void

Method of updating object props.

Parameters

Parameter

Type

Description

changedProps

Partial<MMapDefaultFeaturesLayerProps>

New props values.

Returns

void

Inherited from

MMapComplexEntity.update