Skip to main content

SimpleStyleProperties

wemap-sdk-js


Type Alias: SimpleStyleProperties

SimpleStyleProperties = object

A subset of simplestyle-spec 1.1.0 relevant to lines and polygons, plus an SDK level extension.

marker-* properties are intentionally omitted — use DomMarkerLayer for points.

Properties

description?

optional description?: string

Stored on the feature; not rendered.


fill?

optional fill?: string

Polygon fill colour. Default: the map theme's primary colour.


fill-opacity?

optional fill-opacity?: number

Polygon fill opacity, 01. Default 0.6.


level?

optional level?: number

SDK extension (not part of simplestyle): the indoor level this shape belongs to. When set, the shape is shown only on that floor (following WemapMap.setLevel); omit for a shape visible on every floor.


stroke?

optional stroke?: string

Line / polygon-outline colour. Default: the map theme's primary colour.


stroke-opacity?

optional stroke-opacity?: number

Line / polygon-outline opacity, 01. Default 1.


stroke-width?

optional stroke-width?: number

Line / polygon-outline width in px. Default 2.


title?

optional title?: string

Stored on the feature; not rendered.