AMapView class

高德地图

Inheritance

Constructors

AMapView({Key? key, AMapViewController? controller, bool autoLocateAfterInit = false, MapType mapType = MapType.NORMAL, MapLanguage mapLanguage = MapLanguage.CHINESE, LocationType locationType = LocationType.LOCATE, int locationInterval = 2000, bool showTraffic = false, bool showBuildings = true, bool showMapText = true, bool showZoomControl = true, bool showCompass = false, bool showLocationButton = false, bool showScaleControl = false, bool showIndoorMap = false, bool showIndoorMapControl = false, bool? allGestureEnable, bool zoomGestureEnable = true, bool rotateGestureEnable = true, bool scrollGestureEnable = true, bool tiltGestureEnable = true, bool isGestureScaleByMapCenter = false, ZoomPosition zoomPosition = ZoomPosition.RIGHT_BOTTOM, LogoPosition logoPosition = LogoPosition.BOTTOM_LEFT, LogoMargin? logoMargin, CompassMargin? compassMargin, ScaleMargin? scaleMargin, double initialZoomLevel = 12.0, double maxZoomLevel = 20.0, double minZoomLevel = 3.0, String? customMapStyleId, CameraPosition? defaultCameraPosition, List<LatLng>? androidBound, IosBound? iOSBound})
const

Properties

allGestureEnable bool?
所有手势是否可用
final
androidBound List<LatLng>?
Android显示范围,西南角和东北角
final
autoLocateAfterInit bool
初始化后是否自动定位
final
compassMargin CompassMargin?
指南针相对右上角边距
final
controller AMapViewController?
final
customMapStyleId String?
自定义地图id
final
defaultCameraPosition CameraPosition?
视觉位置,用于设置默认显示区域
final
hashCode int
The hash code for this object.
no setterinherited
initialZoomLevel double
初始缩放等级
final
iOSBound IosBound?
iOS显示范围,西南角和东北角,经纬度变化比例
final
isGestureScaleByMapCenter bool
是否以地图中心点缩放
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
locationInterval int
定位间隔,仅定位类型为连续定位时有效,单位毫秒
final
locationType LocationType
定位类型
final
logoMargin LogoMargin?
Logo相对左下角边距,同时会影响比例尺控件的位置
final
logoPosition LogoPosition
Logo位置
final
mapLanguage MapLanguage
底图语言
final
mapType MapType
地图图层类型
final
maxZoomLevel double
最大缩放等级
final
minZoomLevel double
最小缩放等级
final
rotateGestureEnable bool
旋转手势是否可用
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleMargin ScaleMargin?
比例尺相对左下角边距
final
scrollGestureEnable bool
拖拽手势是否可用
final
showBuildings bool
是否显示楼块
final
showCompass bool
是否显示指南针
final
showIndoorMap bool
是否显示室内地图
final
showIndoorMapControl bool
是否显示室内地图控件
final
showLocationButton bool
是否显示定位按钮
final
showMapText bool
是否显示底图文字标注
final
showScaleControl bool
是否显示比例尺控件
final
showTraffic bool
是否显示实时路况
final
showZoomControl bool
是否显示缩放控件
final
tiltGestureEnable bool
倾斜手势是否可用
final
viewType String
final
zoomGestureEnable bool
缩放手势是否可用
final
zoomPosition ZoomPosition
缩放控件位置
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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.
inherited