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

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'
}));

Detailed example.

Constructor

new MMapDefaultMarker(props)

Constructor parameters

Parameter

Type

props

MMapDefaultMarkerProps

Redefines

MMapComplexEntity.constructor

Props

MMapDefaultMarkerProps: MMapMarkerProps & DefaultMarkerCustomProps

Methods

update

update(changedProps): void

Parameters

Parameter

Type

Description

changedProps

Partial<MMapDefaultMarkerProps>

New props values.

Returns

void

Inherited from

MMapComplexEntity.update