Private constructorPrivate Creates an instance of MapControl
Private Optional eventInternal - Documentation will follow.
Private Optional floorInternal - Documentation will follow.
Private onInternal - Documentation will follow.
Private Optional onInternal - Documentation will follow.
Private Optional onInternal - Documentation will follow.
Private onInternal - Documentation will follow.
Private onInternal - Documentation will follow.
Private Optional onInternal - Documentation will follow.
Private Optional onInternal - Documentation will follow.
Private Optional onInternal - Documentation will follow.
Private Optional onInternal - Documentation will follow.
Private addPrivate Set up livedata listener to receive events from the native SDK.
Add a camera event listener, invoked when a camera event occurs (e.g. moved, idle) (see MPCameraEvent).
Add a listener object to catch floor changes made by either the user or the positioning service.
Uses a camera update to animate the camera.
How to update the camera.
Optional duration: numberhow long the animation should take in ms.
Call this to deselect a location previously selected with (MPLocation, MPSelectionBehavior).
Enables live data on a specific domain and uses MapsIndoors standard graphic implementation.
Uses a domainType string, use LiveDataDomainTypes to get supported strings.
Optional listener: OnLiveLocationUpdateListenerGet the currently selected building, if there is any.
The current building, if any is selected.
Returns the current MPFloor of the current MPBuilding in focus.
Saves the current position of the camera into a MPCameraPosition.
Returns the current floor index or MPFloor.defaultGroundFloorIndex if no MPBuilding is in focus.
Gets the current map style of MapsIndoors tiles.
Focus the map on the given MPEntity.
Examples of classes of type MPEntity are: MPVenue, MPBuilding, MPBuilding, MPLocation.
The entity to move to.
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.
Returns the visibility state of the currently used MPFloorSelectorInterface.
Uses a camera update to move the camera instantly.
How to update the camera.
Private onPrivate Internal - Documentation will follow.
Private removeRemove a camera event listener.
Remove a floor update listener.
Select a building, optionally move the camera to the given building.
Whether to move the camera such that it shows the selected building
When the selection (and possible camera animation) has completed
Sets the current visible floor to the given floorIndex one.
For floor names/z-index pairs check the value returned by MPBuilding.floors
Selects a location based on a MPLocation object.
Optionally apply a MPSelectionBehavior.
Selects a location based on a id string object.
Optionally apply a MPSelectionBehavior.
Select a venue, optionally move the camera to the given venue.
Whether to move the camera such that it shows the selected venue
When the selection (and possible camera animation) has completed
Use this method to display temporary locations, not points of interests location. Use [clearFilter()] to exit this state.
A list of locations to display.
How the map should show the applied filter.
True if any locations are available.
Use this method to display temporary locations, not points of interests location. Use [clearFilter()] to exit this state.
The applied filter.
How the map should show the applied filter.
True if any locations are available.
Replaces the default FloorSelector with a custom one.
Optional floorSelector: MPFloorSelectorInterfaceSets the map style for MapsIndoors tiles.
Is a MPMapStyle object, a list of available MPMapStyles can be fetched via MapsIndoors.getMapStyles.
Set a current building changed event listener, which is invoked when the currently selected building changes.
Optional listener: OnBuildingFoundAtCameraTargetListenerSet a current venue changed event listener, which is invoked when the currently selected venue changes.
Optional listener: OnVenueFoundAtCameraTargetListenerSet a location selection listener, invoked when a location is selected, either by tapping on it, or programmatically with selectLocation.
Optional listener: OnLocationSelectedListenerOptional consumeEvent: booleanWhether the SDK should also react to this event.
Set a listener for when the map has been tapped.
Optional listener: OnMapClickListenerCall with undefined to remove the listener.
Optional consumeEvent: booleanWhether the SDK should also react to this event.
Set a marker click event listener, invoked when a marker is clicked.
Optional listener: OnMarkerClickListenerOptional consumeEvent: booleanWhether the SDK should also react to this event.
Set a info window click listener, invoked when an info window is clicked.
Optional listener: OnMarkerInfoWindowClickListenerPrivate setupPrivate Sets up the floor selector to be able to receive events from the native SDK.
Private teardownStatic createCreate 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.
A configuration object that handles setting multiple options for MapControl.
An event emitter needed to communicate with the native SDKs.
A ready to use MapControl instace.
Generated using TypeDoc
Internal - Documentation will follow.
Export