面样式设置

Since

1.0.0

interface IPolygonOption {
    alpha?: number;
    visible?: boolean;
    isClickable?: boolean;
    zIndex?: number;
    startLevel?: number;
    endLevel?: number;
    points: LatLng[];
    holePoints?: LatLng[] | LatLng[][];
    fillcolor?: string;
    stroke?: Stroke;
    thin?: boolean;
    thinFactor?: number;
    jointType?: LineJoinType;
    isHoleClickable?: boolean;
}

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

holePoints?: LatLng[] | LatLng[][]

镂空坐标序列点

Since

1.2.1

fillcolor?: string

填充颜色

Since

1.0.0

stroke?: Stroke

描边样式配置

Since

1.0.0

thin?: boolean

是否启用抽稀@since 1.2.0

thinFactor?: number

抽稀容差值 >=0

Since

1.2.0

jointType?: LineJoinType

拐点类型

Since

1.2.0

isHoleClickable?: boolean

镂空是否可点击

Since

1.2.1