YandexMapController class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hasListeners
→ bool
-
Whether any listeners are currently registered.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(VoidCallback listener)
→ void
-
Register a closure to be called when the object changes.
inherited
-
deselectGeoObject()
→ Future<void>
-
Resets the currently selected geo object.
-
dispose()
→ void
-
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
override
-
getCameraPosition()
→ Future<CameraPosition>
-
Returns current camera position
-
getFocusRegion()
→ Future<VisibleRegion>
-
Gets the region corresponding to current focusRect or the visible region if focusRect hasn't been set.
-
getPoint(ScreenPoint screenPoint)
→ Future<Point?>
-
Transforms the position from screen coordinates to map coordinates.
-
getScreenPoint(Point point)
→ Future<ScreenPoint?>
-
Transforms the position from map coordinates to screen coordinates.
-
getUserCameraPosition()
→ Future<CameraPosition?>
-
Returns current user position point
Before using this method user layer must be visible
YandexMapController.toggleUserLayer must be called with
visible: true
-
getVisibleRegion()
→ Future<VisibleRegion>
-
Get bounds of visible map area
-
moveCamera(CameraUpdate cameraUpdate, {MapAnimation? animation})
→ Future<bool>
-
Changes the map camera position.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners()
→ void
-
Call all the registered listeners.
inherited
-
removeListener(VoidCallback listener)
→ void
-
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
selectGeoObject({required String objectId, required String layerId, int? groupId, required String dataSourceName})
→ Future<void>
-
Selects a geo object with the specified objectId in the specified layerId with specified dataSourceName.
If the object is not currently on the screen, it is selected anyway, but the user will not actually see that.
You need to move the camera in addition to this call to be sure that the selected object is visible for the user.
-
setMapStyle(String style)
→ Future<bool>
-
Applies JSON style transformations to the map.
Set to empty string to clear previous styling.
-
toggleTrafficLayer({required bool visible})
→ Future<void>
-
Toggles layer with traffic information
-
toggleUserLayer({required bool visible, bool headingEnabled = true, bool autoZoomEnabled = false, UserLocationAnchor? anchor})
→ Future<void>
-
Toggles current user location layer
-
toString()
→ String
-
A string representation of this object.
inherited