Skip to Content
APIMarkersInterface: MarkerConfig

Interface: MarkerConfig

Represents the configuration for the creation of a marker in a map. Provides all necessary properties to create and customize a map marker.

Example

'center'

Properties

anchor?

'top'

A string indicating the part of the Marker that should be positioned closest to the coordinate set via coordinate. Options are 'center', 'top', 'bottom', 'left', 'right', 'top-left', 'top-right', 'bottom-left', and 'bottom-right'.

Default Value

'bottom'


coordinate

'left'

The geographic coordinates of the pointed position.

See

LatLng for coordinate structure


element?

'right'

The HTML element associated with the marker. If provided, this element will be used instead of the icon and text properties.


floorId?

'top-left'

Identifier for the floor on which the marker is located. Used for indoor navigation and floor-specific marker management.


icon?

'top-right'

The icon element to be displayed within the marker. Can be either a URL string or an HTML element.


iconProperties?

'bottom-left'

Additional properties for customizing the marker icon.

See

IconProperties for available customization options


id?

'bottom-right'

Unique identifier for the marker. If not provided, a hexadecimal key will be generated automatically.


onClick()?

void

The function to be executed when the marker is clicked.

Returns

void


refId?

rotationAlignment

Reference identifier of the marker related place. Used to associate the marker with a specific place in the system.


rotationAlignment?

Sets the rotationAlignment property of the marker. Controls how the marker rotates with the map.

See

Alignment for available alignment options


text?

The text content to be displayed with the marker. Can be either a string or an HTML element.


textPosition?

The position of the marker’s text relative to its container.

See

TextPosition for available positioning options


textProperties?

Additional properties for customizing the marker text. If text content is an instance of HTMLElement, this value will not be considered.

See

TextProperties for available customization options

Last updated on