MapViewController class

Controller for MapView. This class exposes methods and callbacks.

Constructors

MapViewController({String? situmUser, required String situmApiKey})

Properties

hashCode int
The hash code for this object.
no setterinherited
mapViewerStatusesFilter List<String>
getter/setter pair
methodChannel MethodChannel
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelNavigation() → void
Cancels the current navigation, if any.
enterCalibrationMode(OnCalibrationPointClickedCallback pointsCallback, OnCalibrationFinishedCallback finishedCallback) → void
Modifies the state of the underlying MapView so it allows building calibrations.
exitCalibrationMode() → void
followUser() → void
Tells the map to keep the camera centered on the user position.
internalARMessageDelegate(dynamic callback(String type, dynamic payload)) → void
Set a callback that will receive internal messages from the MapView.
Starts navigating to a point saved as find my car. You can optionally choose the desired AccessibilityMode used to calculate the route.
Starts navigating to the given POI. You can optionally choose the desired AccessibilityMode used to calculate the route.
Starts navigating to the given coordinates, at the given floor. You can optionally choose the desired AccessibilityMode used to calculate the route. You can also set the name of the destination to be displayed on the MapView.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDirectionsRequestInterceptor(OnDirectionsRequestInterceptor callback) → void
onExternalLinkClicked(OnExternalLinkClickedCallback callback) → void
Callback invoked when the user clicks on a link in the MapView that leads to a website different from the MapView's domain. If this callback is not set, the link will be opened in the system's default browser by default.
onMapViewerMessage(String type, Map<String, dynamic> payload) → void
onNavigationRequestInterceptor(OnNavigationRequestInterceptor callback) → void
onPoiDeselected(OnPoiDeselectedCallback callback) → void
Get notified when the selected POI is deselected.
onPoiSelected(OnPoiSelectedCallback callback) → void
Get notified when a POI is selected.
onSpeakAloudText(OnSpeakAloudTextCallback callback) → void
Get notified when the viewer wants to read aloud some text.
reload() → void
Reloads the MapView using the current configuration by reloading the underlying platform web view controller.
Performs a search with the given SearchFilter.
selectBuilding(String identifier) → void
Selects the given Building in the map. To set the initial Building use MapViewConfiguration.
selectCar() → void
Selects a point saved as find my car on the map.
selectFloor(int identifier, {SelectCartographyOptions? options}) → void
Select a floor of the current building by its Floor.identifier.
selectPoi(String identifier) → void
Selects the given POI in the map.
selectPoiCategory(String identifier) → void
Selects the given POI category in the map.
setCamera(Camera camera) → void
Animate the map's Camera.
setCurrentLocation(Location location) → void
Tells the MapView where the user is located at.
setDirectionsOptions(MapViewDirectionsOptions directionOptions) → void
Process two lists: included & excluded tags and asynchronously sends directions.set_options message.
setLanguage(String lang) → void
Sets the UI language based on the given ISO 639-1 code. Checkout the Situm docs to see the list of supported languages.
setLocalCalibrations(dynamic payload) → void
Set calibrations stored locally so the MapView can represent them.
stopCurrentCalibration(dynamic payload) → void
Stops the current calibration. A null payload tells the MapView to prompt the user to decide what to do with the current calibration (save, undo, cancel).
toString() String
A string representation of this object.
inherited
unfollowUser() → void
Stops following the user (see followUser).
updateAugmentedRealityStatus(ARStatus status) → void
Communicates the state of the AR module to the MapView.

Operators

operator ==(Object other) bool
The equality operator.
inherited