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
- Cancels the current navigation, if any.
-
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. Do not use this method as it is intended for internal use.
- 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 -
onPoiDeselected(
OnPoiDeselectedCallback callback) → void - Get notified when the selected POI is deselected.
-
onPoiSelected(
OnPoiSelectedCallback callback) → void - Get notified when a POI is selected.
-
search(
SearchFilter searchFilter) → void - Performs a search with the given SearchFilter.
-
selectFloor(
int identifier) → 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(
List< String> includedTags, List<String> excludedTags) → 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.
-
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