This describes the general interface for a pin style object

An object literal containing placement instructions for point-based labels. All properties are optional.

A pin is a connecting line between the label and the anchor point of the label. If the position of the label changes, so will the pin change position as well.

Hierarchy

  • PinStyle

Properties

color?: string

The color of the pin. It must be a valid CSS color string.

endPosition?: PinEndPosition

The location of where the pin should attach to the label.

haloColor?: string

The color of the halo. It must be a valid CSS color string.

haloWidth?: number

The width of the halo in pixels.

width?: number

The width of the pin in pixels.