YMapDefaultFeaturesLayer

The YMapDefaultFeaturesLayer 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 YMapDefaultFeaturesLayer();
// add to the map
map.addChild(defaultFeaturesLayer);
// update
defaultFeaturesLayer.update({zIndex: 1501});

Constructor

new YMapDefaultFeaturesLayer(props, options?)

Constructor parameters

Parameter

Type

Description

props

YMapDefaultFeaturesLayerProps

Value of input props.

options

ComplexOptions<YMap>

Optional object parameters.

Inherited from

YMapComplexEntity.constructor

new YMapDefaultFeaturesLayer(props, children?, options?)

Constructor parameters

Parameter

Type

props

YMapDefaultFeaturesLayerProps

children?

GenericEntity<unknown, {}, YMap>[]

options?

Omit<ComplexOptions<YMap>, "children">

Inherited from

YMapComplexEntity.constructor

Props

YMapDefaultFeaturesLayerProps: 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<YMapDefaultFeaturesLayerProps>

New props values.

Returns

void

Inherited from

YMapComplexEntity.update