AMapOptions class

关于AMapOptions:

  1. 在Android端主要起到一个初始配置MapView的作用, 它里面的所有的设置都能通过setUiSettings 进行二次设置
  2. iOS端则不同, iOS端的做法是所有的配置都在MAMapView这一个类里, 所以理论上初始化的时候就能 够对MAMapView做所有的配置 结论: 这个类只按照Android端的实现去做两端的初始化配置, 如果iOS端想要其他的配置, 可以通过AMapController.setUiSettings 去二次设置.

Constructors

AMapOptions({int logoPosition = LOGO_POSITION_BOTTOM_LEFT, bool zOrderOnTop = false, int mapType = MAP_TYPE_NORMAL, CameraPosition? camera, bool scaleControlsEnabled = false, bool zoomControlsEnabled = true, bool compassEnabled = false, bool scrollGesturesEnabled = true, bool zoomGesturesEnabled = true, bool tiltGesturesEnabled = true, Map? params, bool rotateGesturesEnabled = true, @Deprecated('在AMapController.setMyLocationStyle中去设置我的位置相关的配置') bool myLocationEnabled = false})
const

Properties

camera CameraPosition?
地图初始化时的地图状态, 默认地图中心点为北京天安门,缩放级别为 10.0f。 Android全部有效, iOS部分有效
final
compassEnabled bool
指南针是否可用。 Android, iOS
final
hashCode int
The hash code for this object.
no setterinherited
logoPosition int
“高德地图”Logo的位置 Androids
final
mapType int
地图模式 Android, iOS
final
myLocationEnabled bool
是否启动显示定位蓝点, 默认false Android
final
params Map?
final
rotateGesturesEnabled bool
地图旋转手势是否可用 Android, iOS
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleControlsEnabled bool
比例尺功能是否可用 Android, iOS
final
scrollGesturesEnabled bool
拖动手势是否可用 Android, iOS
final
tiltGesturesEnabled bool
地图倾斜手势(显示3D效果)是否可用 Android
final
zoomControlsEnabled bool
地图是否允许缩放 Android
final
zoomGesturesEnabled bool
缩放手势是否可用 Android, iOS
final
zOrderOnTop bool
final

Methods

copyWith({int? logoPosition, bool? zOrderOnTop, int? mapType, CameraPosition? camera, bool? scaleControlsEnabled, bool? zoomControlsEnabled, bool? compassEnabled, bool? scrollGesturesEnabled, bool? zoomGesturesEnabled, bool? tiltGesturesEnabled, bool? rotateGesturesEnabled, bool? myLocationEnabled}) AMapOptions
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toJsonString() String
toString() String
A string representation of this object.
override

Operators

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