Class AegirMap

The aegir default implementation contains all of the functions for loading and displaying your venue map, as well as basic interactions.

Example

const aegir = new AegirMap()

Hierarchy

  • AegirMap

Accessors

  • get isFullyLoaded(): boolean
  • Returns boolean

Constructors

Methods

  • Parameters

    Returns Marker

  • Adds a listener for events of a specified type.

    Parameters

    • type: AegirMapEvents

      Any of the supported map events

    • handler: ((e) => void)

      A callback function to norify the event.

        • (e): void
        • Parameters

          • e: any

          Returns void

    Returns void

    Since

    2.0.0

  • Parameters

    • longitude: number
    • latitude: number
    • Optional desc: any

    Returns Marker

  • Parameters

    • lng: number
    • lat: number
    • params: any

    Returns void

  • Handles automatically hiding and showing floors.

    Parameters

    • indoorFloors: string[]

      the list of ids for floors indoor floors to change

    • outdoorFloors: string[] = undefined

      the list of ids for floors outdoor floors to change

    Returns void

  • Returns void

  • Clean up and release all internal resources associated with this map. This includes DOM elements, event bindings, web workers, and WebGL resources. Use this method when you are done using the map and wish to ensure that it no longer consumes browser resources. Afterwards, you must not call any other methods on the map.

    Returns void

    Since

    2.0.0

  • Search for indoor floors in any building

    Parameters

    • floorId: string

      the unique id for the floor you are searching for

    Returns any

    the matched floor, or null if not found

    Since

    1.2

  • Search for outdoor floors in any building

    Parameters

    • floorId: string

      the unique id for the floor you are searching for

    Returns any

    the matched floor, or null if not found

    Since

    1.2

  • List of buildings for the venue

    Returns any[]

    all building objects

    Since

    1.2

  • Returns any

  • Get the list of currently active indoor floors

    Returns any[]

    list of floors

  • Get the list of currently active outdoor floors

    Returns any[]

    list of floors

  • Get debug settings

    Returns any

    debug settings

  • A Dictionary of all the floors in the venue where each key is a floor Id.

    Returns any

    a Key-Value dictionary of floor Id and floor

  • Get map layers

    Returns {
        commonBuildingLayers: (string | string[])[][];
        commonLayers: (string | string[])[][];
        customStyleLayers: any[];
        globalLayers: (string | string[])[][];
        rasterLayers: (string | string[])[][];
        vectorLayers: (string | string[])[][];
    }

    map layers

    • commonBuildingLayers: (string | string[])[][]
    • commonLayers: (string | string[])[][]
    • customStyleLayers: any[]
    • globalLayers: (string | string[])[][]
    • rasterLayers: (string | string[])[][]
    • vectorLayers: (string | string[])[][]

    Deprecated

  • List of outdoor buildings for the venue

    Returns any[]

    the list of outdoor floors in the venue

    Since

    1.2

  • Loads the map view, initialized at the given lat/lng

    Parameters

    Returns Promise<void>

  • Parameters

    Returns void

  • Parameters

    Returns void

    Since

    1.2.1

  • Parameters

    • unit: VmMapUnit

      the unit to remove the style from. Style will revert back to default style defined in json config.

    Returns void

    Since

    1.2.1

  • set's the alpha on the map's background layer

    Parameters

    • alpha: string

    Returns void

    Since

    1.2

  • Parameters

    • imagePath: string

      path of image

    • key: string

      key

    Returns void

    Since

    1.3

  • Parameters

    Returns void

    Since

    2.0.0

  • Parameters

    Returns void

    Since

    1.2.1

  • Sets the object model for the map. The object model represents the the Venue's buildings, floors and units

    Parameters

    Returns void

    Since

    2.0

  • Load map layers for a particular floor

    Parameters

    • floorId: string

      the id of the floor to show

    Returns void

  • Increases the map's zoom level by 1.

    Returns void

    Since

    2.0.0

  • Decreases the map's zoom level by 1.

    Returns void

    Since

    2.0.0

  • Zooms the map to the specified zoom level, with an animated transition.

    Parameters

    • zoom: number

      The zoom level to transition to.

    Returns void

    Example

    // Zoom to the zoom level 5 without an animated transition
    map.zoomTo(5);

    Since

    2.0.0

Properties

EVENTS: typeof AegirMapEvents = AegirMapEvents

Deprecated

use the AegirMapEvents enum

featureMap: Record<string, FeatureDetail> = {}
mapEngine: MapEngine

Generated using TypeDoc