Properties
Readonly
__type
__type : "MappedinPolygon" = "MappedinPolygon"
Optional
canvasBounds
canvasBounds ?: { align : string ; maxHeight : number ; maxWidth : number ; rotation : number ; x : number ; y : number ; }
Type declaration
align : string
maxHeight : number
maxWidth : number
rotation : number
x : number
y : number
Optional
categoryRank
categoryRank ?: number
Optional
externalId
externalId ?: string
Optional
holes
holes ?: unknown []
Optional
image
image ?: { _isAbsolutelyPositioned ?: boolean ; fitToBounds : boolean ; original : string | Blob ; position : { x : number ; y : number ; z : number ; } ; rotation : { x : number ; y : number ; z : number ; } ; scale : { x : number ; y : number ; } ; url : string | Blob ; useLocalScaling : boolean ; viewBox : { height : number ; width : number ; } ; visible : boolean ; }
Type declaration
Optional
_isAbsolutelyPositioned ?: boolean
fitToBounds : boolean
original : string | Blob
position : { x : number ; y : number ; z : number ; }
x : number
y : number
z : number
rotation : { x : number ; y : number ; z : number ; }
x : number
y : number
z : number
scale : { x : number ; y : number ; }
url : string | Blob
useLocalScaling : boolean
viewBox : { height : number ; width : number ; }
height : number
width : number
visible : boolean
Optional
label
label ?: { align : string ; color : string ; fontFamily : string ; fontSize : number ; position : { x : number ; y : number ; z : number ; } ; rotation : { x : number ; y : number ; z : number ; } ; text : string ; visible : boolean ; }
Type declaration
align : string
color : string
fontFamily : string
fontSize : number
position : { x : number ; y : number ; z : number ; }
x : number
y : number
z : number
rotation : { x : number ; y : number ; z : number ; }
x : number
y : number
z : number
text : string
visible : boolean
Optional
layer
layer ?: string
Optional
layerId
layerId ?: string
material
material : { color : string ; opacity ?: number ; }
Type declaration
color : string
Optional
opacity ?: number
Optional
name
name ?: string
Optional
perspectives
perspectives ?: any
Optional
textures
textures ?: { image : any ; name : "front" | "side" ; useFrontFaceImage ?: boolean ; } []
Type declaration
image : any
name : "front" | "side"
Optional
useFrontFaceImage ?: boolean
Optional
vertexes
vertexes ?: { x : number ; y : number ; } []
Static
Readonly
__type
__type : "MappedinPolygon" = "MappedinPolygon"
The MappedinPolygon class represents the 3D shape of a MappedinLocation on a {MappedinMap. Polygons have access to Locations they belong to, and any entrances to the Polygon.
A Polygon can have more properties but usually the default is sufficient. The Mappedin'things' object is where you would specify what properties you want to download for Polygons. Only specify what you will actually use, to minmimze transfer time. Work with your Mappedin developer relations contact to set up any custom properties you need.