SimpleMapController class

Constructors

SimpleMapController({double showSpeedRate = 0.4, double hideSpeedRate = 0.9, double maxPointRadius = 4.0, double shadowRatio = 1.5, double shadowOpacity = 0.3, Duration? defaultPointTTL, Map<int, double>? radiusScaleFactors, double glowRadius = 0.0, double maxZoom = 7.0, dynamic points})

Properties

center Offset
no setter
curve Curve
getter/setter pair
defaultPointTTL Duration?
Default point time to live duration
final
glowRadius double
Point glow effect radius
final
hashCode int
The hash code for this object.
no setterinherited
hideSpeedRate double
Point hiding animation speed factor
final
initialZoom double
getter/setter pair
markers List<SimpleMapMarker>
Active markers list
no setter
maxPointRadius double
The maximum Point radius
final
maxZoom double
The maximum zoom of the map, used in flyTo animation
final
points List<SimpleMapPoint>?
Active points list
getter/setter pair
radiusScaleFactors Map<int, double>?
Automatic Point radius based on points.length Example: {0: 1.7, 25: 1.4, 50: 1.2, 100: 1.0}
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowOpacity double
Point shadow opacity
final
shadowRatio double
Point shadow ratio
final
showSpeedRate double
Point showing animation speed factor
final
size Size
no getter
translation Offset
no setter
zoom double
no setter

Methods

addMarker(SimpleMapMarker marker) → void
addPoint(SimpleMapPoint point) → void
Add new point to the map
clear() → void
Clear the map
clearMarkers() → void
configure({required SimpleMapOptions options, Animation? animation, Animation? transformAnimation, State<SimpleMap>? state}) → void
Configure
flyTo(double? lat, double? lng, {double zoom = 10, Duration duration = const Duration(milliseconds: 1500)}) Future<void>
Fly animation to the new lat and lng
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
project(double? lat, double? lng) Offset
removeMarker(SimpleMapMarker marker) bool
render(Canvas canvas, Size size) → void
This method render points on the canvas based on the size.
startAnimation() → void
stopAnimation() → void
toString() String
A string representation of this object.
inherited

Operators

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