Class: clusterStyle

bemap.clusterStyle(options)

Base class for clusterStyle.

Constructor

new clusterStyle(options)

Parameters:
Name Type Description
options Object See below the available values.
Properties
Name Type Description
icon bemap.Icon Set the style of the non clustered marker.
size Int Set the size of the clustered marker marker.
borderColor bemap.Color Set the color of the border of the clustered marker.
borderSize Int Set the size of the border of the clustered marker.
color bemap.Color Set the background color of the clustered marker.
textColor bemap.Color Set the color of the text inside the clustered marker.
textSize int Set the size of the text inside the clustered marker.
textFont Array.<String> (MapLibre only) Font stack for the cluster-count label, e.g. `['Noto Sans Regular']`. Must be a font your map's glyphs endpoint serves. When unset, MapLibre picks a served default (Noto Sans on BeNomad Tiles).
Source:

Members

(protected) borderColor :bemap.Color

Type:
Source:

(protected) borderSize :int

Type:
  • int
Source:

(protected) color :bemap.Color

Type:
Source:

(protected) icon :bemap.Icon

Type:
Source:

(protected) native :bemap.Icon

Type:
Source:

(protected) properties :Object

Type:
  • Object
Source:

(protected) size :int

Type:
  • int
Source:

(protected) textColor :bemap.Color

Type:
Source:

(protected) textFont :Array.<String>|null

MapLibre-only font stack for the cluster-count label. null → the SDK picks a font the map's glyphs endpoint serves.
Type:
  • Array.<String> | null
Source:

(protected) textSize :int

Type:
  • int
Source: