MapControllerImpl class
- Implemented types
-
- Annotations
-
Methods
-
centerZoomFitBounds(LatLngBounds bounds, {FitBoundsOptions? options = const FitBoundsOptions(padding: EdgeInsets.all(12))})
→ CenterZoom
-
Calculates the appropriate center and zoom level for the map to perfectly
fit
bounds
, with additional configurable options
override
-
dispose()
→ void
-
Dispose of this controller by closing the mapEventStream's
StreamController
override
-
fitBounds(LatLngBounds bounds, {FitBoundsOptions? options = const FitBoundsOptions(padding: EdgeInsets.all(12))})
→ bool
-
Move and zoom the map to perfectly fit
bounds
, with additional
configurable options
override
-
latLngToScreenPoint(LatLng latLng)
→ CustomPoint<double>
-
Convert a map coordinate (lat/lng) to its corresponding screen point (x/y),
based on the map's current screen positioning
override
-
move(LatLng center, double zoom, {Offset offset = Offset.zero, String? id})
→ bool
-
Moves and zooms the map to a
center
and zoom
level
override
-
moveAndRotate(LatLng center, double zoom, double degree, {String? id})
→ MoveAndRotateResult
-
Calls move and rotate together, but is more efficient for the combined
operation
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
pointToLatLng(CustomPoint<num> localPoint)
→ LatLng
-
Convert a screen point (x/y) to its corresponding map coordinate (lat/lng),
based on the map's current properties
override
-
rotate(double degree, {String? id})
→ bool
-
Rotates the map to a decimal
degree
around the current center, where 0°
is North
override
-
rotateAroundPoint(double degree, {CustomPoint<double>? point, Offset? offset, String? id})
→ MoveAndRotateResult
-
Rotates the map to a decimal
degree
around a custom screen point, where
0° is North
override
-
rotatePoint(CustomPoint<num> mapCenter, CustomPoint<num> point, {bool counterRotation = true})
→ CustomPoint<double>
-
override
-
toString()
→ String
-
A string representation of this object.
inherited