interface
ClustererEventTable
The list of events that can be emitted by clusterer.
click
Emitted when the marker/cluster is clicked.
mousedown
Emitted when the user presses a mouse button over the marker/cluster.
mousemove
Emitted when the user moves the pointer over the marker/cluster.
mouseout
Emitted when the user moves the pointer away from the marker/cluster.
mouseover
Emitted when the user hovers over the marker/cluster.
mouseup
Emitted when the user releases the mouse button over the marker/cluster.
touchend
Emitted when the user lifts the finger off the marker/cluster.
touchstart
Emitted when the user taps on the marker/cluster.
ClustererOptions
Clusterer initialization options.
clusterStyle?
Style of clusters. This parameter accepts an object or a function. When given an object, the same style will be applied to all clusters. If you want to customize the style based on the number of markers within the cluster, you can provide a function instead.
disableClusteringAtZoom?
At this zoom level and above, markers will not be clustered.
radius?
Clustering radius in pixels.
ClustererPointerEvent
The event type for pointer-related clusterer events.
ClusterTarget
Cluster event target.
HtmlClusterStyle
Cluster style for HTML Marker
anchor?
The position in pixels of the "tip" of the HTML marker relative to its top-left corner.
html
HTML content of the HTML marker.
maxZoom?
Maximum display zoom level of the HTML marker.
minZoom?
Minimum display zoom level of the HTML marker.
preventMapInteractions?
Capture events if set, otherwise events will passed to the map. Use this setting if you want to
disable map zoom/scroll over html marker. By default it's
true
.
type
zIndex?
Draw order.
HtmlInputMarker
Marker style for HTML marker
anchor?
The position in pixels of the "tip" of the HTML marker relative to its top-left corner.
coordinates
Geographical coordinates of marker center
[longitude, latitude]
.
html
HTML content of the HTML marker.
maxZoom?
Maximum display zoom level of the HTML marker.
minZoom?
Minimum display zoom level of the HTML marker.
preventMapInteractions?
Capture events if set, otherwise events will passed to the map. Use this setting if you want to
disable map zoom/scroll over html marker. By default it's
true
.
type
userData?
User specific data.
zIndex?
Draw order.
[key: string]
InputMarkerLabelOptions
Initialization options of the marker's label.
anchor?
The offset distance of text box from its
relativeAnchor
.
Positive values indicate left and up, while negative values indicate right and down.
DEPRECATED! Will be removed in the next major release, use the
offset
option instead.
color?
Text color in hexadecimal RGB (
#ff0000
) or RGBA (
#ff0000ff
) format.
fontSize?
Text size.
haloColor?
Color of letters background (when
haloRadius
is specified). Same format as for
color
.
haloRadius?
Use
haloRadius
to add background behind each letter.
letterSpacing?
Space between each letter.
lineHeight?
For multiline label
lineHeight
specify how far lines between each other.
maxZoom?
Maximum display zoom level of the label.
minZoom?
Minimum display zoom level of the label.
offset?
The offset distance of text box from its
relativeAnchor
.
Positive values indicate right and down, while negative values indicate left and up.
relativeAnchor?
The relative, from 0 to 1 in each dimension, coordinates of the text box "tip". relative to its top left corner, for example:
[0, 0] value is the top left corner, [0.5, 0.5] — center point, and [1, 1] is the bottom right corner of the box.
The label will be placed so that this point is at geographical
coordinates
respects the absolute
offset
.
text
Label's text.
zIndex?
Draw order.
MarkerTarget
Marker event target.
WebglClusterStyle
Cluster style for MapGL Marker
anchor?
The position of the "tip" of the icon (relative to its top left corner). The icon will be aligned so that this point is at the cluster's geographical location. Centered by default if anchor is not specified and custom icon is provided.
hoverAnchor?
Cluster icon anchor in hovered state.
hoverIcon?
Cluster icon URL in hovered state.
hoverSize?
Cluster icon size
[width, height]
in hovered state in pixels.
icon?
Cluster icon URL.
labelAnchor?
The offset distance of text box from its
relativeAnchor
.
Positive values indicate left and up, while negative values indicate right and down.
DEPRECATED! Will be removed in the next major release, use the
offset
option instead.
labelColor?
Label's text color of a cluster in CSS hexadecimal RGB format (e.g.
#ff0000
).
labelFontSize?
Label's text font size of a cluster.
labelHaloColor?
Label's text background color of a cluster in CSS hexadecimal RGB format (e.g.
#ff0000
).
labelHaloRadius?
Label's text background radius of a cluster. The background is set for each letter of the text.
labelLetterSpacing?
Label's text letter spacing of a cluster.
labelOffset?
The offset distance of text box from its
relativeAnchor
.
Positive values indicate right and down, while negative values indicate left and up.
labelRelativeAnchor?
The relative, from 0 to 1 in each dimension, coordinates of the text box "tip". relative to its top left corner, for example:
[0, 0] value is the top left corner, [0.5, 0.5] — center point, and [1, 1] is the bottom right corner of the box.
The label will be placed so that this point is at geographical
coordinates
respects the absolute
offset
.
labelText?
Label's text of a cluster. By default, it's the size of the cluster.
size?
Cluster icon size
[width, height]
in pixels.
type?
zIndex?
Draw Order
WebglInputMarker
Marker style for MapGL marker.
anchor?
The position of the "tip" of the icon (relative to its top left corner). The icon will be aligned so that this point is at the marker's geographical location. Centered by default if anchor is not specified and custom icon is provided.
coordinates
Geographical coordinates of marker center
[longitude, latitude]
.
hoverAnchor?
Marker icon anchor in hovered state.
hoverIcon?
Marker icon URL in hovered state.
hoverSize?
Marker icon size
[width, height]
in pixels in hovered state.
icon?
Marker icon URL.
label?
Initialization options of the marker's label.
size?
Marker icon size
[width, height]
in pixels.
type?
userData?
User specific data.
zIndex?
Draw order.