Skip to main content

ViewerPolygon

wemap-sdk-js


Interface: ViewerPolygon

A polygon anchored in the real world, drawn over the panorama: an area on the floor, a shelf front, a door. See WemapViewer.setPolygons.

Properties​

color?​

optional color?: string

Fill colour (CSS). Defaults to Wemap blue.


coordinates​

coordinates: Coordinates[]

Vertices in order, not closed. Each needs an altitude, in the same reference as the graph nodes'.


fillOpacity?​

optional fillOpacity?: number

Fill opacity, 0 to 1. Defaults to 0.25.


outlineColor?​

optional outlineColor?: string

Outline colour (CSS). Defaults to color.