AMapController class

Bound to one widget instance. Futures acknowledge commands, not animation end.

Properties

hashCode → int
The hash code for this object.
no setterinherited
isDisposed → bool
Whether the widget has released this controller’s native map.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

fitBounds(AMapBounds bounds, {EdgeInsets padding = EdgeInsets.zero, bool animated = false}) → Future<void>
Fits a geographic rectangle with independent logical-pixel edge insets. Completes when the native SDK accepts the command.
getCamera() → Future<AMapCameraPosition>
Reads the native camera center in GCJ-02 and its current zoom level.
getMapApprovalNumbers() → Future<AMapApprovalNumbers>
Reads both SDK approval numbers regardless of the selected map type. Throws approval_numbers_unavailable if neither is available yet.
getZoomRange() → Future<({double maxZoom, double minZoom})>
Reads the zoom limits reported by this map's native SDK.
moveCamera(AMapCameraPosition camera, {bool animated = false, Offset? targetScreenPoint}) → Future<void>
Moves the given GCJ-02 target to targetScreenPoint, in Flutter logical pixels from this map's top-left. Omit it to use the viewport center.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
projectToScreen(AMapLatLng coordinate) → Future<Offset>
Projects a GCJ-02 point using the current camera. The offset is in Flutter logical pixels from this map widget's top-left corner.
setOptions(AMapOptions options) → Future<void>
Reconfigures this map without replacing its view or overlays.
toString() → String
A string representation of this object.
inherited
unprojectFromScreen(Offset point) → Future<AMapLatLng>
Returns the GCJ-02 coordinate under a point inside this map widget. point uses Flutter logical pixels measured from its top-left corner.

Operators

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