定位图层配置参数接口

interface ILocationConfig {
    locationMode?: LocationMode;
    enableDirection?: boolean;
    enableRotation?: boolean;
    arrow?: any;
    arrowSize?: number;
    customMarker?: any;
    gifMarker?: string;
    markerSize?: number;
    isNeedAnimation?: boolean;
    accuracyCircleFillColor?: ColorString;
    isEnableCustom?: boolean;
}

Properties

locationMode?: LocationMode

定位图层显示方式

Since

2.0.0

enableDirection?: boolean

是否显示方向信息

Default

true

Since

2.0.0

enableRotation?: boolean

是否支持图标旋转

Default

false

Since

2.0.0

arrow?: any

自定义定位箭头图标

Since

2.0.0

arrowSize?: number

箭头大小比例(范围 0.2~3.0)

Default

1.0

Since

2.0.0

customMarker?: any

用户自定义定位图标(支持 png、jpg)

Since

2.0.0

gifMarker?: string

用户自定义 GIF 定位图标路径

Default

null customMarker 二选一

Since

2.0.0

markerSize?: number

定位图标大小比例(范围 0.1~2.0)

Default

1.0

Since

2.0.0

isNeedAnimation?: boolean

图标是否需要呼吸动画(仅箭头+图标模式下生效)

Default

true

Since

2.0.0

accuracyCircleFillColor?: ColorString

精度圈填充颜色

Since

2.0.0

isEnableCustom?: boolean

是否支持图标自定义

Since

2.0.0