MapControllerImpl class
Implements MapController whilst exposing methods for internal use which should not be visible to the user (e.g. for setting the current camera or linking the internal controller).
- Implemented types
Constructors
Properties
- bounds → LatLngBounds?
-
Current outer points/boundaries coordinates
no setteroverride
- camera → MapCamera
-
Access the current MapCamera
no setteroverride
- center → LatLng
-
Current center coordinates
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- internalController ← FlutterMapInternalController
-
no getter
-
mapEventSink
→ StreamSink<
MapEvent> -
no setter
-
mapEventStream
→ Stream<
MapEvent> -
Stream of all emitted
MapEvent
sno setteroverride - rotation → double
-
Current rotation in degrees, where 0° is North
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- zoom → double
-
Current zoom level
no setteroverride
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 configurableoptions
override -
dispose(
) → void -
Dispose of this controller.
override
-
fitBounds(
LatLngBounds bounds, {FitBoundsOptions options = const FitBoundsOptions(padding: EdgeInsets.all(12))}) → bool -
Move and zoom the map to perfectly fit
bounds
, with additional configurableoptions
override -
fitCamera(
CameraFit cameraFit) → bool -
Move and zoom the map to fit
cameraFit
.override -
latLngToScreenPoint(
LatLng mapCoordinate) → Point< 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
andzoom
leveloverride -
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(
Point< num> screenPoint) → 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 Northoverride -
rotateAroundPoint(
double degree, {Point< double> ? point, Offset? offset, String? id}) → MoveAndRotateResult -
Rotates the map to a decimal
degree
around a custom screen point, where 0° is Northoverride -
rotatePoint(
Point< num> mapCenter, Point<num> point, {bool counterRotation = true}) → Point<double> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited