MyLocationStyle class

Constructors

MyLocationStyle({String? myLocationIcon, double? anchorU = 0.5, double? anchorV = 0.5, Color? radiusFillColor = const Color(0xff0000dc), Color? strokeColor = const Color(0x640000b4), double? strokeWidth = 1, int? myLocationType = LOCATION_TYPE_LOCATION_ROTATE, int? interval = 2000, bool? showMyLocation = true, bool? showsAccuracyRing = true, bool? showsHeadingIndicator = false, Color? locationDotBgColor = Colors.white, Color? locationDotFillColor = Colors.blue, bool? enablePulseAnnimation = true, String? image})

Properties

anchorU double?
锚点横坐标方向的偏移量 Android
final
anchorV double?
锚点纵坐标方向的偏移量 Android
final
enablePulseAnnimation bool?
内部蓝色圆点是否使用律动效果, 默认YES iOS
final
hashCode int
The hash code for this object.
no setteroverride
image String?
定位图标, 与蓝色原点互斥 iOS暂不支持
final
interval int?
定位请求时间间隔 Android
final
locationDotBgColor Color?
定位点背景色,不设置默认白色 iOS
final
locationDotFillColor Color?
定位点蓝色圆点颜色,不设置默认蓝色 iOS
final
myLocationIcon String?
当前位置的图标 Android暂不支持, iOS暂不支持
final
myLocationType int?
我的位置展示模式
final
radiusFillColor Color?
圆形区域(以定位位置为圆心,定位半径的圆形区域)的填充颜色值 Android, iOS
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showMyLocation bool?
是否显示定位小蓝点 Android
final
showsAccuracyRing bool?
精度圈是否显示,默认YES iOS
final
showsHeadingIndicator bool?
是否显示方向指示(MAUserTrackingModeFollowWithHeading模式开启)。默认为YES iOS
final
strokeColor Color?
圆形区域(以定位位置为圆心,定位半径的圆形区域)边框的颜色值 Android, iOS
final
strokeWidth double?
圆形区域(以定位位置为圆心,定位半径的圆形区域)边框的宽度 Android, iOS
final

Methods

copyWith({String? myLocationIcon, double? anchorU, double? anchorV, Color? radiusFillColor, Color? strokeColor, double? strokeWidth, int? myLocationType, int? interval, bool? showMyLocation, bool? showsAccuracyRing, bool? showsHeadingIndicator, Color? locationDotBgColor, Color? locationDotFillColor, bool? enablePulseAnnimation, String? image}) MyLocationStyle
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toJsonString() String
toString() String
A string representation of this object.
override

Operators

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