MMapFeatureDataSource

The MMapFeatureDataSource class is a data source for geo objects. It is used to load objects onto the map in geoJSON format.

Creating an object

const ID = 'id';
const dataSource = new MMapFeatureDataSource({id: ID});
const layer = new MMapLayer({source: ID, type: 'features', zIndex: 10});
map
   .addChild(dataSource)
   .addChild(layer);

Constructor

new MMapFeatureDataSource(props)

Constructor parameters

Parameter

Type

Description

props

MMapFeatureDataSourceProps

Value of input props.

Inherited from

MMapEntity.constructor

Props

MMapFeatureDataSourceProps: Object

Parameters

Parameter

Type

Description

id

string

Data source id

Methods

update

update(changedProps): void

Method of updating object props.

Parameters

Parameter

Type

Description

changedProps

Partial<MMapFeatureDataSourceProps>

New props values.

Returns

void

Inherited from

MMapEntity.update