AmapView class

高德地图 Widget

Inheritance

Constructors

AmapView({Key key, _OnMapCreated onMapCreated, MapType mapType, bool showZoomControl, bool showCompass, bool showScaleControl, bool zoomGesturesEnabled, bool scrollGesturesEnabled, bool rotateGestureEnabled, bool tiltGestureEnabled, double zoomLevel, LatLng centerCoordinate, List<MarkerOption> markers, OnMarkerClick onMarkerClick, OnMapClick onMapClick, OnMapDrag onMapDrag, Duration maskDelay = const Duration(seconds: 0), Widget mask})
const

Properties

centerCoordinate LatLng
中心点坐标
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
mapType MapType
地图类型
final
markers List<MarkerOption>
标记
final
mask Widget
遮盖地图层的widget
final
maskDelay Duration
PlatformView创建时, 会有一下的黑屏, 这里提供一个在PlatformView初始化时, 盖住其黑屏 的遮罩, maskDelay配置延迟多少时间之后再显示地图, 默认不延迟, 即0.
final
onMapClick OnMapClick
地图点击回调
final
onMapCreated → _OnMapCreated
地图创建完成回调
final
onMapDrag OnMapDrag
地图拖动回调
final
onMarkerClick OnMarkerClick
标识点击回调
final
rotateGestureEnabled bool
是否使能旋转手势
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scrollGesturesEnabled bool
是否使能滚动手势
final
showCompass bool
是否显示指南针控件
final
showScaleControl bool
是否显示比例尺控件
final
showZoomControl bool
是否显示缩放控件
final
tiltGestureEnabled bool
是否使能倾斜手势
final
zoomGesturesEnabled bool
是否使能缩放手势
final
zoomLevel double
缩放级别
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() AmapViewState
Creates the mutable state for this widget at a given location in the tree. [...]
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toDiagnosticsNode({String name, DiagnosticsTreeStyle style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object. [...]
inherited
toStringDeep({String prefixLineOne = '', String prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants. [...]
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object. [...]
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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