YMapDefaultMarker

The YMapDefaultMarker 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

import {YMapDefaultMarker} from '@yandex/ymaps3-default-ui-theme';

map.addChild(new YMapDefaultMarker({
    coordinates: [34, 54],
    title: 'Hello World!',
    subtitle: 'kind and bright',
    color: 'blue'
}));

Detailed example.

Constructor

new YMapDefaultMarker(props)

Constructor parameters

Parameter

Type

props

YMapDefaultMarkerProps

Redefines

YMapComplexEntity.constructor

Props

YMapDefaultMarkerProps: YMapMarkerProps & DefaultMarkerCustomProps

Methods

update

update(changedProps): void

Parameters

Parameter

Type

Description

changedProps

Partial<YMapDefaultMarkerProps>

New props values.

Returns

void

Inherited from

YMapComplexEntity.update