线样式设置

Since

1.0.0

interface IPolylineOption {
    alpha?: number;
    visible?: boolean;
    isClickable?: boolean;
    zIndex?: number;
    startLevel?: number;
    endLevel?: number;
    points: LatLng[];
    width?: number;
    fillcolor?: string;
    strokeWidth?: number;
    strokeColor?: string;
    textures?: ImageEntity[];
    textureOption?: TextureOption;
    join?: LineJoinType;
    cap?: LineCapType;
    startCapType?: LineCapType;
    endCapType?: LineCapType;
    isGeodesic?: boolean;
    directionCross180?: LineDirectionCross;
    isThined?: boolean;
    thinFactor?: number;
    smoothType?: SmoothType;
    smoothFactor?: number;
    dottedline?: boolean;
    dottedlineType?: PolylineDottedLineType;
    colorList?: string[];
    indexList?: number[];
    isGradient?: boolean;
    lineBloomType?: ELineBloomType;
    lineBloomWidth?: number;
    lineBloomAlpha?: number;
    lineBloomGradientASPeed?: number;
    lineBloomBlurTimes?: number;
}

Hierarchy (view full)

Properties

alpha?: number

设置透明度 [0,1]

Since

1.1.0

visible?: boolean

是否显示

Since

1.1.0

isClickable?: boolean

是否启用点击

Since

1.1.0

zIndex?: number

设置层级

Since

1.1.0

startLevel?: number

开始显示地图缩放级别

Since

1.0.0

endLevel?: number

结束显示地图缩放级别

Since

1.0.0

points: LatLng[]

坐标序列点

Since

1.0.0

width?: number

线宽

Since

1.0.0

fillcolor?: string

填充颜色

Since

1.0.0

strokeWidth?: number

描边线宽

Since

1.2.0

strokeColor?: string

描边线颜色

Since

1.2.0

textures?: ImageEntity[]

填充纹理

Since

1.0.0

textureOption?: TextureOption

设置纹理填充样式

Default

SysEnum.StrokeStyle.REAL

Since

1.2.0

线拐点样式

Since

1.0.0

线端点样式

Since

1.0.0

startCapType?: LineCapType

线开始端点样式

Since

1.2.0

endCapType?: LineCapType

线终点端点样式

Since

1.2.0

isGeodesic?: boolean

是否启用大地线模式

Since

1.0.0

directionCross180?: LineDirectionCross

跨域180度绘制方式

Since

1.0.0

isThined?: boolean

是否启用坐标点抽稀

Since

1.0.0

thinFactor?: number

抽稀容差值 >=0

Since

1.2.0

smoothType?: SmoothType

平滑类型

Since

1.2.0

smoothFactor?: number

平滑控制值

Since

1.2.0

dottedline?: boolean

是否启用虚线绘制

Since

1.0.0

dottedlineType?: PolylineDottedLineType

虚线类型

Since

1.0.0

colorList?: string[]

填充颜色列表

Since

1.1.0

indexList?: number[]

填充多纹理的索引 数量等于点数减1

Since

1.1.0

isGradient?: boolean

是否是渐变线

Since

1.1.0 *

lineBloomType?: ELineBloomType

发光样式

Since

1.1.0 *

lineBloomWidth?: number

发光线段的宽度 宽度 >0 ,默认普通线宽 * 2

Since

1.1.0 *

lineBloomAlpha?: number

发光线段的透明度 (0~1) 默认1

Since

1.1.0 *

lineBloomGradientASPeed?: number

透明度渐变发光效果的渐变速率(1.0 ~ 10.0)默认5.0

Since

1.1.0 *

lineBloomBlurTimes?: number

模糊发光效果的模糊次数(1~10) 默认1次

Since

1.1.0 *