Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

Index

Constructors

constructor

Properties

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 externalId

externalId: string

geometry

geometry: any

id

id: string

Node ID.

property

id {string}

Optional layer

layer: string

Optional layerId

layerId: string

map

map: string

ID of Map that Polygon is located on.

property

map {string}

Optional name

name: string

Optional vertexes

vertexes: { x: number; y: number }[]

Accessors

entrances

  • Polygon's entrance Nodes.

    property

    entrances {[MappedinNode]}

    Returns MappedinNode[]

  • Polygon's entrance Nodes.

    Parameters

    Returns void

locations

  • Locations attached to the Polygon.

    property

    locations {[MappedinLocation]}

    Returns MappedinLocation[]

rank

  • get rank(): null | { node: string; score: number }
  • Ranking for this polygon.

    Returns null | { node: string; score: number }

Methods

directionsTo

directionsToCallback

distanceTo

toJSON

  • toJSON(): any
  • Returns any

Static fetch

Static hydrate