Internal - Documentation will follow.

Export

Hierarchy

  • MapControl

Constructors

  • Private

    Creates an instance of MapControl

    Returns MapControl

Properties

eventEmitter?: NativeEventEmitter

Internal - Documentation will follow.

floorSelector?: EmitterSubscription

Internal - Documentation will follow.

onCameraEventSubs: Map<MPCameraEventListener, EmitterSubscription> = ...

Internal - Documentation will follow.

onCurrentBuildingChangedSub?: EmitterSubscription

Internal - Documentation will follow.

onCurrentVenueChangedSub?: EmitterSubscription

Internal - Documentation will follow.

onFloorUpdateSubs: Map<OnFloorUpdateListener, EmitterSubscription> = ...

Internal - Documentation will follow.

onLiveUpdateSubs: Map<string, EmitterSubscription> = ...

Internal - Documentation will follow.

onLocationSelectedSub?: EmitterSubscription

Internal - Documentation will follow.

onMapClickSub?: EmitterSubscription

Internal - Documentation will follow.

onMarkerClickSub?: EmitterSubscription

Internal - Documentation will follow.

onMarkerInfoWindowClickSub?: EmitterSubscription

Internal - Documentation will follow.

Methods

  • Private

    Set up livedata listener to receive events from the native SDK.

    Parameters

    Returns void

  • Add a camera event listener, invoked when a camera event occurs (e.g. moved, idle) (see MPCameraEvent).

    Parameters

    Returns void

  • Add a listener object to catch floor changes made by either the user or the positioning service.

    Parameters

    Returns void

  • Uses a camera update to animate the camera.

    Parameters

    • update: MPCameraUpdate

      How to update the camera.

    • Optional duration: number

      how long the animation should take in ms.

    Returns Promise<void>

    Async

  • Invoke this method to restore the map to its default state (POIs shown based on their display rules, etc.).

    Returns Promise<void>

    Async

  • Call this to deselect a location previously selected with (MPLocation, MPSelectionBehavior).

    Returns Promise<void>

    Async

  • Disables live data for a specific domainType.

    Parameters

    • domainType: string

    Returns Promise<void>

    Async

  • Enables live data on a specific domain and uses MapsIndoors standard graphic implementation.

    Uses a domainType string, use LiveDataDomainTypes to get supported strings.

    Parameters

    Returns Promise<void>

    Async

  • Get the currently selected building, if there is any.

    Returns Promise<MPBuilding>

    The current building, if any is selected.

    Async

  • Returns the current MPFloor of the current MPBuilding in focus.

    Returns Promise<MPFloor>

    Async

  • Returns the current floor index or defaultGroundFloorIndex if no MPBuilding is in focus.

    Returns Promise<number>

    Async

  • Get the zoom level that MapsIndoors is currently using for displaying icons on the map.

    Returns Promise<number>

    Async

  • Get the currently selected venue, if there is any.

    Returns Promise<MPVenue>

    The current venue, if any is selected.

    Async

  • Gets the current map style of MapsIndoors tiles.

    Returns Promise<MPMapStyle>

    Async

  • Gets the Map View bottom padding.

    Returns Promise<number>

    Async

  • Gets the Map View bottom padding.

    Returns Promise<number>

    Async

  • Gets the Map View bottom padding.

    Returns Promise<number>

    Async

  • Gets the Map View bottom padding.

    Returns Promise<number>

    Async

  • Shows or hides the MPFloorSelectorInterface, i.e. hiding the View from MapControl.

    MapControl will still receive relevant events on floor updates, building change etc.

    The Interface will also receive the events, making it possible to show/hide in real time, without refreshing the map.

    Parameters

    • hide: boolean

    Returns Promise<void>

    Async

  • Returns the visibility state of the currently used MPFloorSelectorInterface.

    Returns Promise<boolean>

    Async

  • Returns the current visibility state of the user location icon (blue dot).

    Returns Promise<boolean>

    Async

  • Uses a camera update to move the camera instantly.

    Parameters

    Returns Promise<void>

    Async

  • Private

    Internal - Documentation will follow.

    Parameters

    Returns void

  • Private

    Destroy up livedata listener to receive events from the native SDK.

    Parameters

    • domainType: string

    Returns void

  • Remove a camera event listener.

    Parameters

    Returns void

  • Remove a floor update listener.

    Parameters

    Returns void

  • Select a building, optionally move the camera to the given building.

    Parameters

    • building: MPBuilding
    • moveCamera: boolean

      Whether to move the camera such that it shows the selected building

    Returns Promise<void>

    When the selection (and possible camera animation) has completed

    Async

  • Sets the current visible floor to the given floorIndex one.

    For floor names/z-index pairs check the value returned by floors

    Parameters

    • floorIndex: number

    Returns Promise<void>

    Async

  • Selects a location based on a MPLocation object.

    Parameters

    Returns Promise<void>

    Async

  • Selects a location based on a id string object.

    Parameters

    Returns Promise<void>

    Async

  • Select a venue, optionally move the camera to the given venue.

    Parameters

    • venue: MPVenue
    • moveCamera: boolean

      Whether to move the camera such that it shows the selected venue

    Returns Promise<void>

    When the selection (and possible camera animation) has completed

    Async

  • Use this method to display temporary locations, not points of interests location. Use [clearFilter()] to exit this state.

    Parameters

    • locations: MPLocation[]

      A list of locations to display.

    • filterBehavior: MPFilterBehavior

      How the map should show the applied filter.

    Returns Promise<boolean>

    True if any locations are available.

    Async

  • Use this method to display temporary locations, not points of interests location. Use [clearFilter()] to exit this state.

    Parameters

    Returns Promise<boolean>

    True if any locations are available.

    Async

  • Replaces the default FloorSelector with a custom one.

    Parameters

    Returns Promise<void>

    Async

  • Set options for location labels

    Parameters

    • textSize: number
    • color: String
    • showHalo: boolean

    Returns Promise<void>

  • Sets padding on the map.

    Parameters

    • start: number
    • top: number
    • end: number
    • bottom: number

    Returns Promise<void>

    Async

  • Sets the map style for MapsIndoors tiles.

    Parameters

    Returns Promise<void>

    Async

  • Set a current building changed event listener, which is invoked when the currently selected building changes.

    Parameters

    Returns void

  • Set a current venue changed event listener, which is invoked when the currently selected venue changes.

    Parameters

    Returns void

  • Set a location selection listener, invoked when a location is selected, either by tapping on it, or programmatically with selectLocation.

    Parameters

    Returns void

  • Set a listener for when the map has been tapped.

    Parameters

    • Optional listener: OnMapClickListener

      Call with undefined to remove the listener.

    • Optional consumeEvent: boolean

      Whether the SDK should also react to this event.

    Returns void

  • Set a marker click event listener, invoked when a marker is clicked.

    Parameters

    • Optional listener: OnMarkerClickListener
    • Optional consumeEvent: boolean

      Whether the SDK should also react to this event.

    Returns void

  • Set a info window click listener, invoked when an info window is clicked.

    Parameters

    Returns void

  • Private

    Sets up the floor selector to be able to receive events from the native SDK.

    Parameters

    Returns Promise<void>

    Async

  • Enables/disables the info window on user-selected locations.

    The info window is shown by default when the user selects a location (by tapping on it)

    Parameters

    • show: boolean

    Returns Promise<void>

    Async

  • Renders the positioning blue dot at the last known user position on the map.

    Parameters

    • show: boolean

    Returns Promise<void>

    Async

  • Private

    Removes a custom floor selector.

    Returns Promise<void>

    Async

  • Create a new MapControl instance.

    Note that new MapControl instances will only be created when/if the MapsIndoors SDK has initialized successfully.

    This method will wait until this condition has been met.

    Parameters

    • config: MPMapConfig

      A configuration object that handles setting multiple options for MapControl.

    • nativeEventEmitter: typeof NativeEventEmitter

      An event emitter needed to communicate with the native SDKs.

    Returns Promise<MapControl>

    A ready to use MapControl instace.

    Static

    Async

Generated using TypeDoc