Internal - Documentation will follow.

Export

Hierarchy

  • MapControl

Constructors

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

  • 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

  • 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 zoom level that MapsIndoors is currently using for displaying icons on the map.

    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

  • 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 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

  • 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

  • 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

  • Sets padding on the map.

    Parameters

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

    Returns Promise<void>

    Async

  • 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

  • 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