PinBuilder

external class PinBuilder(source)

A utility class for generating custom map pins as canvas elements.

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Creates an empty pin of the specified color and size.

Link copied to clipboard

Creates a pin with the specified maki icon identifier, color, and size.

Link copied to clipboard
fun fromText(text: String, color: Color, size: Double): HTMLCanvasElement

Creates a pin with the specified text, color, and size. The text will be sized to be as large as possible while still being contained completely within the pin.

Link copied to clipboard

Creates a pin with the specified icon, color, and size.