Search results

DataLabelSettings API in React Maps API component

Gets or sets the options to customize the data labels in maps.

Properties

animationDuration

number

Gets and sets the duration time for animating the data label.

Defaults to 0

border

BorderModel

Gets or sets the options for customizing the style properties of the border of the data labels.

fill

string

Gets or sets the background color for the data labels in maps.

Defaults to ‘black’

intersectionAction

IntersectAction

Gets or sets the action to be performed when a data-label intersect with other data labels in maps.

Defaults to None

labelPath

string

Gets or sets the field name from the data source based on which the data labels gets rendered. The field name from the GeoJSON data can also be set.

Defaults to

opacity

number

Gets or sets the opacity of the data labels in maps.

Defaults to 1

rx

number

Gets or sets the x position for the data labels.

Defaults to 10

ry

number

Gets or sets the y position for the data labels in maps.

Defaults to 10

smartLabelMode

SmartLabelMode

Gets or sets the action to be performed when the data labels exceeds the shape over which it is rendered.

Defaults to None

template

string | Function

Gets or sets the template for the data labels to render custom elements.

Defaults to

textStyle

FontModel

Gets or sets the options for customizing the styles of the text in data labels.

visible

boolean

Enables or disables the visibility of data labels in maps.

Defaults to false