public static class MyLocationConfiguration.Builder
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
int |
accuracyCircleFillColor |
int |
accuracyCircleStrokeColor |
boolean |
enableArrow |
boolean |
enableDirection |
MyLocationConfiguration.LocationMode |
locationMode |
构造器和说明 |
---|
Builder(MyLocationConfiguration.LocationMode locationMode,
boolean enableArrow) |
限定符和类型 | 方法和说明 |
---|---|
MyLocationConfiguration |
build() |
MyLocationConfiguration.Builder |
setAccuracyCircleFillColor(int accuracyCircleFillColor)
设置精度框的填充色
|
MyLocationConfiguration.Builder |
setAccuracyCircleStrokeColor(int accuracyCircleFillColor)
设置精度框的颜色
|
MyLocationConfiguration.Builder |
setAnimation(boolean isNeedAnimation)
设置图标是否做呼吸动画
|
MyLocationConfiguration.Builder |
setArrow(BitmapDescriptor arrow)
设置定位方向箭头
|
MyLocationConfiguration.Builder |
setArrowSize(float arrowSize)
设置定位方向箭头的尺寸比例
|
MyLocationConfiguration.Builder |
setCustomMarker(BitmapDescriptor customMarker)
设置自定义定位图标 png,jpg
|
MyLocationConfiguration.Builder |
setGifMarker(java.lang.String gifPath)
设置gif图标
|
MyLocationConfiguration.Builder |
setMarkerRotation(boolean isRotation)
设置图标是否可以旋转
|
MyLocationConfiguration.Builder |
setMarkerSize(float markerSize)
设置定位图标的尺寸比例
|
public MyLocationConfiguration.LocationMode locationMode
public boolean enableDirection
public boolean enableArrow
public int accuracyCircleStrokeColor
public int accuracyCircleFillColor
public Builder(MyLocationConfiguration.LocationMode locationMode, boolean enableArrow)
public MyLocationConfiguration.Builder setArrow(BitmapDescriptor arrow)
arrow
- public MyLocationConfiguration.Builder setArrowSize(float arrowSize)
arrowSize
- (0.2~3.0)public MyLocationConfiguration.Builder setCustomMarker(BitmapDescriptor customMarker)
customMarker
- public MyLocationConfiguration.Builder setGifMarker(java.lang.String gifPath)
gifPath
- public MyLocationConfiguration.Builder setMarkerSize(float markerSize)
markerSize
- (0.1~2.0)public MyLocationConfiguration.Builder setAnimation(boolean isNeedAnimation)
isNeedAnimation
- public MyLocationConfiguration.Builder setMarkerRotation(boolean isRotation)
isRotation
- public MyLocationConfiguration.Builder setAccuracyCircleStrokeColor(int accuracyCircleFillColor)
accuracyCircleFillColor
- public MyLocationConfiguration.Builder setAccuracyCircleFillColor(int accuracyCircleFillColor)
accuracyCircleFillColor
- public MyLocationConfiguration build()