Options
All
  • Public
  • Public/Protected
  • All
Menu

A MappedinMap belonging to a specific MappedinVenue. Typically represents a certain floor. Give this to a MapView to display to the user.

A Map can have more properties such as 'elevation', 'name' (e.g. Level 1), and 'shortName' (e.g. L1). The elevation property can be used to determine the order of the floors (first, second, etc). Elevation is 0 based, going up and down in integers representing the number of floors above or below 0, which is ground level.

The Mappedin 'things' object is where you would specify what properties you want to download for Maps. 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.

See below for an example a 'things' object with available Map properties specified:

things: {
venue: [],
locations: [],
categories: [],
maps: ['name', 'elevation', 'shortName']
}

Hierarchy

  • MappedinMap

Index

Constructors

Properties

_scale: number
elevation: number
georeference: TGeoReference[]
group: string
height: number
id: string
layers: { id: string; name: string; visible: boolean }[]
name: string
perspectiveId?: string
scale?: number
scene: any
shortName: string
width: number
x_scale?: number

Accessors

  • Map Group this map belongs to.

    property

    mapGroup {MappedinMapGroup}

    Returns null | MappedinMapGroup

  • Polygons on this Map.

    property

    polygons {[MappedinPolygon]}

    Returns undefined | MappedinPolygon[]

Methods

  • Create coordinate using lat/lon

    Parameters

    • lat: number

      latitude of coordinate

    • lon: number

      longitude of coordinate

    Returns MappedinCoordinate

  • getNorth(): any
  • Returns any

    map rotation in radians from north

  • toJSON(): any
  • Returns any