POIStyleProperties

Interface POIStyleProperties

Defines the visual appearance of a set of PointOfInterests.

interface POIStyleProperties {
    color?: [number, number, number, number];
    name?: string;
    size?: number;
    sprite?: HTMLImageElement;
}

Properties

color?: [number, number, number, number]

The color of the POIs as RGBA values in the range [0, 1].

[0, 0, 0, 1]
name?: string

Optional. Name of the POI style.

undefined
size?: number

The size of the POIs. By default, this is interpreted as screen space pixels. See sizeMode in POISetProperties for details.

15
sprite?: HTMLImageElement

The sprite image to use for the POIs. If not set, the POIs will be rendered as circles. To delete a sprite from an existing style, set the sprite to null.

undefined