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
vanilla
react
vue
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 |
|
Value of input |
Inherited from
Props
MMapFeatureDataSourceProps: Object
Parameters
Parameter |
Type |
Description |
|
|
Data source id |
Methods
update
update(changedProps
): void
Method of updating object props.
Parameters
Parameter |
Type |
Description |
|
New |
Returns
void