AmapView class

高德地图 Widget

Inheritance

Constructors

AmapView({Key key, _OnMapCreated onMapCreated, bool showIndoorMap, MapType mapType, Language language, bool showTraffic, bool showZoomControl, bool showCompass, bool showLocateControl, bool showScaleControl, bool zoomGesturesEnabled, bool scrollGesturesEnabled, bool rotateGestureEnabled, bool tiltGestureEnabled, bool allGesturesEnabled, double zoomLevel, LatLng centerCoordinate, List<MarkerOption> markers, OnMarkerClick onMarkerClick, OnMapClick onMapClick, OnMapDrag onMapDrag})
const

Properties

allGesturesEnabled bool
是否使能所有手势
final
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
language Language
地图语言
final
mapType MapType
地图类型
final
markers List<MarkerOption>
标记
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
showIndoorMap bool
是否显示室内地图
final
showLocateControl bool
是否显示定位控件
final
showScaleControl bool
是否显示比例尺控件
final
showTraffic 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