MMapDefaultMarker
The MMapDefaultMarker
class is the default marker. It does not enable you to add a custom implementation.
Note
This class is a JS API package component and provides additional features not included in the core API.
To integrate the package, follow the instructions.
Usage example
vanilla
react
vue
const {MMapDefaultMarker} = await mappable.import('@mappable-world/mappable-markers');
map.addChild(new MMapDefaultMarker({
coordinates: [34, 54],
title: 'Hello World!',
subtitle: 'kind and bright',
color: 'blue'
}));
Constructor
new MMapDefaultMarker(props
)
Constructor parameters
Parameter |
Type |
|
Redefines
Props
MMapDefaultMarkerProps: MMapMarkerProps & DefaultMarkerCustomProps
Methods
update
update(changedProps
): void
Parameters
Parameter |
Type |
Description |
|
New |
Returns
void