ViewerPolygon
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?
optionalcolor?: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?
optionalfillOpacity?:number
Fill opacity, 0 to 1. Defaults to 0.25.
outlineColor?
optionaloutlineColor?:string
Outline colour (CSS). Defaults to color.