UMapController class

Default implementation of MapController

Implemented types

Constructors

UMapController()

Properties

bounds LatLngBounds?
map bounds
no setteroverride
center LatLng?
center of the map
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isReady bool
is map controller is ready to be used
no setteroverride
liveStream Stream<LatLng>?
stream to listen to current live user position on the map
no setteroverride
map MapState?
map state
getter/setter pairoverride
onChanged MapChangedCallback?
callback function to be called when map state is changed
getter/setter pairoverride
onReady Function?
callback function to be called when map controller is ready
getter/setter pairoverride
positionStream Stream<MapData>?
stream to listen to current position of the map
no setteroverride
rotation double?
rotation of the map
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zoom double?
zoom level of the map
no setteroverride

Methods

bearing(dynamic toDestination, {DistanceAlgorithmType algorithm = DistanceAlgorithmType.Haversine}) double
Calculate bearing from current center of the map to toDestination.
override
destination(double distance, double bearing, {DistanceAlgorithmType algorithm = DistanceAlgorithmType.Haversine}) LatLng
Calculate LatLng destination with distance and bearing from current center of the map.
override
dispose() → void
dispose map controller
override
distance(dynamic toDestination, {DistanceAlgorithmType algorithm = DistanceAlgorithmType.Haversine, LengthUnit unit = LengthUnit.M}) double
Calculate distance between current center of the map with toDestination.
override
filterInsideRadius(List<LatLng> locations, double radius, {DistanceAlgorithmType algorithm = DistanceAlgorithmType.Haversine, LengthUnit unit = LengthUnit.M}) List<LatLng>
Filter locations to only contains LatLng within a specified radius.
override
findLocation(String query) Future<LatLng?>
Find LatLng location by address.
override
fitBounds(dynamic bounds, [FitBoundsOptions? options]) → void
Fits the map bounds. Optional constraints can be defined through the FitBoundsOptions parameter.
override
isInsideRadius(LatLng location, double radius, {DistanceAlgorithmType algorithm = DistanceAlgorithmType.Haversine, LengthUnit unit = LengthUnit.M}) bool
Check if a specific location is inside the radius from current center of the map.
override
locate({bool automove = false, double toZoom = 17.0}) Future<LatLng?>
Find current LatLng user location
override
move(dynamic center, {double? zoom, bool animate = false}) → void
Moves the map to a specific location and zoom level.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rotate(double rotation, {bool animate = false, Function? onAnimateEnd}) → void
Rotate the map to a specific value.
override
toString() String
A string representation of this object.
inherited
zoomIn([double zoomDelta = zoomDeltaDef]) → void
Zoom in the map with a specified delta
zoomOut([double zoomDelta = zoomDeltaDef]) → void
Zoom out the map with a specified delta
zoomTo(double zoom, {bool animate = false}) → void
Zoom the map to a specific zoom level.
override

Operators

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