public class MyLocationConfiguration
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
MyLocationConfiguration.Builder |
static class |
MyLocationConfiguration.LocationMode
定位图层显示方式
|
限定符和类型 | 字段和说明 |
---|---|
int |
accuracyCircleFillColor
精度圈填充颜色
|
int |
accuracyCircleStrokeColor
精度圈边框颜色
|
boolean |
enableArrow
是否显示箭头模式
|
boolean |
enableDirection
是否显示方向信息
|
MyLocationConfiguration.LocationMode |
locationMode
定位图层显示方式
|
int |
width
精度圈边框宽度,默认传0;
|
构造器和说明 |
---|
MyLocationConfiguration(MyLocationConfiguration.LocationMode mode,
boolean enableDirection,
BitmapDescriptor customMarker)
构造函数
|
MyLocationConfiguration(MyLocationConfiguration.LocationMode mode,
boolean enableDirection,
BitmapDescriptor customMarker,
int accuracyCircleFillColor,
int accuracyCircleStrokeColor)
构造函数
|
MyLocationConfiguration(MyLocationConfiguration.LocationMode mode,
boolean enableDirection,
BitmapDescriptor customMarker,
int accuracyCircleFillColor,
int accuracyCircleStrokeColor,
int width)
构造函数
|
限定符和类型 | 方法和说明 |
---|---|
BitmapDescriptor |
getArrow() |
float |
getArrowSize() |
BitmapDescriptor |
getCustomMarker() |
java.lang.String |
getGifMarker() |
float |
getMarkerSize() |
boolean |
isEnableCustom() |
boolean |
isEnableRotation() |
boolean |
isNeedAnimation() |
void |
setAnimation(boolean isNeedAnimation) |
void |
setArrow(BitmapDescriptor arrow) |
void |
setArrowSize(float arrowSize) |
void |
setCustomMarker(BitmapDescriptor customMarker) |
void |
setGifMarker(java.lang.String gifPath) |
void |
setMarkerRotation(boolean isRotation) |
void |
setMarkerSize(float markerSize) |
public final MyLocationConfiguration.LocationMode locationMode
public boolean enableDirection
public boolean enableArrow
public int accuracyCircleFillColor
public int accuracyCircleStrokeColor
public int width
public MyLocationConfiguration(MyLocationConfiguration.LocationMode mode, boolean enableDirection, BitmapDescriptor customMarker, int accuracyCircleFillColor, int accuracyCircleStrokeColor)
mode
- 定位图层显示方式, 默认为 LocationMode.NORMAL 普通态enableDirection
- 是否允许显示方向信息customMarker
- 设置用户自定义定位图标,可以为 nullaccuracyCircleFillColor
- 设置精度圈填充颜色accuracyCircleStrokeColor
- 设置精度圈填充颜色public MyLocationConfiguration(MyLocationConfiguration.LocationMode mode, boolean enableDirection, BitmapDescriptor customMarker, int accuracyCircleFillColor, int accuracyCircleStrokeColor, int width)
mode
- 定位图层显示方式, 默认为 LocationMode.NORMAL 普通态enableDirection
- 是否允许显示方向信息customMarker
- 设置用户自定义定位图标,可以为 nullaccuracyCircleFillColor
- 设置精度圈填充颜色accuracyCircleStrokeColor
- 设置精度圈填充颜色width
- 设置精度圈边框宽度public MyLocationConfiguration(MyLocationConfiguration.LocationMode mode, boolean enableDirection, BitmapDescriptor customMarker)
mode
- 定位图层显示方式, 默认为 LocationMode.NORMAL 普通态enableDirection
- 是否允许显示方向信息customMarker
- 设置用户自定义定位图标,可以为 nullpublic void setArrow(BitmapDescriptor arrow)
public BitmapDescriptor getArrow()
public void setCustomMarker(BitmapDescriptor customMarker)
public BitmapDescriptor getCustomMarker()
public void setArrowSize(float arrowSize)
public float getArrowSize()
public void setGifMarker(java.lang.String gifPath)
public java.lang.String getGifMarker()
public void setMarkerSize(float markerSize)
public float getMarkerSize()
public void setAnimation(boolean isNeedAnimation)
public boolean isNeedAnimation()
public void setMarkerRotation(boolean isRotation)
public boolean isEnableRotation()
public boolean isEnableCustom()