Main class for accessing data in the MapsIndoors SDK.

Export

Constructors

  • Private

    Creates an instance of MapsIndoors.

    Returns default

Methods

  • Applies a list of MPUserRoles to the SDK which will get the UserRole specific locations..

    Parameters

    Returns Promise<void>

    Static

    Async

  • Checks if there is on device data (embedded/locally stored) available. For this to return true, data has to be available for all solution data types (MPLocation, MPBuilding...).

    Returns true if data is available, otherwise returns false.

    Returns Promise<boolean>

    Static

    Async

  • Clears the internal state of MapsIndoors SDK. Any loaded content is purged from memory.

    Invoke load to start the SDK anew.

    Returns Promise<void>

    Static

    Async

  • disable SDK event logging through MapsIndoors. No logs will be created or send with this disabled.

    By default it is enabled. But disabled in the CMS meaning logs will be created but never uploaded.

    Parameters

    • disable: boolean

    Returns Promise<void>

    Static

    Async

  • Retrieves the API key that was set when calling load.

    Will return empty string if no key has been set.

    Returns Promise<string>

    Static

    Async

  • Returns the list of MPUserRoles that is currently applied.

    Returns Promise<MPUserRole[]>

    Static

    Async

  • Returns a list of the current solution's available languages.

    Returns Promise<string[]>

    Static

    Async

  • Retrieve the default display rule (fallback rule in case the main rule has not loaded/ has errors).

    Returns Promise<MPDisplayRule>

    Static

    Async

  • Returns the default language for the current solution.

    Returns Promise<string>

    Static

    Async

  • Gets the default venue for this solution.

    Returns Promise<MPVenue>

    Static

    Async

  • Retrieve the display rule for the given location.

    Requires that load has successfully executed.

    Parameters

    Returns Promise<MPDisplayRule>

    Static

    Async

  • Retrieve the display rule with a given [@link name}.

    Requires that load has successfully executed.

    Parameters

    • name: string

      The ID of the DisplayRule

    Returns Promise<MPDisplayRule>

    Static

    Async

  • Gets the language currently used in the SDK.

    Returns Promise<string>

    Static

    Async

  • Retrieves a MPLocation by its id.

    Parameters

    • id: string

    Returns Promise<MPLocation>

    Static

    Async

  • Gets all locations (a list of MPLocation objects) for the current solution.

    Returns Promise<MPLocation[]>

    Static

    Async

  • Run a query on all available locations with a query and filter.

    Parameters

    Returns Promise<MPLocation[]>

    Static

    Async

  • Retrieves a list of MPLocations by externalIds.

    Parameters

    • externalIds: string[]

    Returns Promise<MPLocation[]>

    Static

    Async

  • Retrieve the main display rule (can be configured in the CMS).

    Requires that load has successfully executed.

    Returns Promise<MPDisplayRule>

    Static

    Async

  • Gets a collection of available map styles.

    Returns Promise<MPMapStyle[]>

    Static

    Async

  • Gets the MPSolution for the current loaded api key.

    Returns Promise<MPSolution>

    Static

    Async

  • Gets the User Roles for the current solution.

    Note that role names are localized.

    Returns Promise<MPUserRoleCollection>

    Static

    Async

  • Gets a collection of all venues for the current solution.

    Returns Promise<MPVenueCollection>

    Static

    Async

  • Check if the current API key is valid.

    Returns Promise<boolean>

    Static

    Async

  • Check if load has been called.

    Returns Promise<boolean>

    Static

    Async

  • Check if the SDK is initialized and ready for use.

    Returns Promise<boolean>

    Static

    Async

  • Loads content from the MapsIndoors solution matching the given API apiKey.

    Parameters

    • apiKey: String

      The key to the MapsIndoors solution.

    Returns Promise<void>

    If the load fails for any reason, it will reject with a MPError.

    Static

    Async

  • Sets the SDK's internal language.

    By default, the SDK language can be:

    • the solution's default language (MPSolutionInfo#getDefaultLanguage()).
    • the current device language, if the MapsIndoors data isn't available (ie: first app run without network access).

    Parameters

    • language: string

    Returns Promise<boolean>

    Static

    Async

  • Set a new position provider, or pass undefined to remove the current one.

    Parameters

    Returns Promise<void>

    Static

    Async

  • Main data synchronization method.

    If not manually invoked, [MapControl.create(config, listener)] will invoke it.

    Returns Promise<void>

    Static

    Async

Generated using TypeDoc