MyLocationStyle class

Constructors

MyLocationStyle({String myLocationIcon, double anchorU: 0.5, double anchorV: 0.5, Color radiusFillColor: Colors.transparent, Color strokeColor: Colors.transparent, double strokeWidth: 1, int myLocationType: LOCATION_TYPE_LOCATE, int interval: 0, bool showMyLocation: true, bool showsAccuracyRing: true, bool showsHeadingIndicator: false, Color locationDotBgColor: Colors.white, Color locationDotFillColor: Colors.blue, bool enablePulseAnimation: true })

Properties

anchorU → double
锚点横坐标方向的偏移量 Android
final
anchorV → double
锚点纵坐标方向的偏移量 Android
final
enablePulseAnimation → bool
内部蓝色圆点是否使用律动效果, 默认YES iOS
final
hashCode → int
The hash code for this object. [...]
read-only
interval → int
设置发起定位请求的时间间隔,单位:毫秒,默认值:1000毫秒,如果传小于1000的任何值将执行单次定位。 Android
final
locationDotBgColor Color
定位点背景色,不设置默认白色 iOS
final
locationDotFillColor Color
定位点蓝色圆点颜色,不设置默认蓝色 iOS
final
myLocationIcon → String
当前位置的图标 Android暂不支持, iOS暂不支持
final
myLocationType → int
我的位置展示模式
final
radiusFillColor Color
圆形区域(以定位位置为圆心,定位半径的圆形区域)的填充颜色值 Android, iOS
final
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
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

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 enablePulseAnimation }) MyLocationStyle
toJson() → Map<String, Object>
toJsonString() → String
toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited

Operators

operator ==(Object other) → bool
The equality operator. [...]