Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Mappedin

Index

Constructors

constructor

Properties

categories

categories: MappedinCategory[]

events

events: MappedinEvent[]

images

images: any

locationRankings

locationRankings: MappedinLocationRankings[]
deprecated

use polygonRankings instead TODO: remove when we know that nobody is using this

locationStates

locationStates: MappedinLocationState[]

locations

locations: MappedinLocation[]

mapGroups

mapGroups: MappedinMapGroup[]

maps

maps: MappedinMap[]

nodes

nodes: MappedinNode[]

options

options: any

perspective

perspective: any

polygons

polygons: MappedinPolygon[]

Optional rankings

rankings: MappedinRankings

scenes

scenes: any

themes

themes: MappedinTheme[]

things

things: any

Optional updatedAt

updatedAt: string

venue

vortexes

vortexes: MappedinVortex[]

Methods

fetch

  • fetch(): Promise<void>
  • Returns Promise<void>

getCollectionItemById

  • getCollectionItemById<T, I>(name: T, id: I): null | TAccessors[T]
  • Type parameters

    • T: keyof TAccessors

    • I: string

    Parameters

    • name: T
    • id: I

    Returns null | TAccessors[T]

hydrate

  • hydrate(mappedinSerializableData: string | object, shouldPopulateBundledImagesAsBlobs?: boolean): Promise<undefined>
  • [experimental] Hydrate the Mappedin instance using a response from either {@link IMappedin.toString()}, getVenueBundle or by downloading the bundle manually

    Parameters

    • mappedinSerializableData: string | object

      Mappedin data that was serialized or exported as JSON

    • Optional shouldPopulateBundledImagesAsBlobs: boolean

      Takes the scenes and images from a bundle and maps them as blobs to where they exist as URLs in the bundle. False by default

    Returns Promise<undefined>

toJSON

  • toJSON(): any
  • Export venue data to JSON (for storage, encryption, etc)

    Returns any

toString

  • toString(): string
  • Export venue data to String

    Returns string