MapController class

Controller to programmatically interact with FlutterMap.

It allows for map movement through move, rotation through rotate and to fit the map bounds with fitBounds.

It also provides current map properties.

Implementers

Constructors

MapController()
factory

Properties

bounds LatLngBounds
read-only
center LatLng
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
onReady Future<Null>
read-only
onRotationChanged ValueChanged<double>
read / write
ready bool
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
zoom double
read-only

Methods

fitBounds(LatLngBounds bounds, {FitBoundsOptions options}) → void
Fits the map bounds. Optional constraints can be defined through the options parameter.
move(LatLng center, double zoom) → void
Moves the map to a specific location and zoom level
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
rotate(double degree) → void
Sets the map rotation to a certain degrees angle (in decimal).
toString() String
A string representation of this object. [...]
inherited

Operators

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