PolylineOptions
interface PolylineOptions {
clip?: boolean;
enableClicking?: boolean;
enableEditing?: boolean;
enableMassClear?: boolean;
geodesic?: boolean;
linkRight?: boolean;
strokeColor?: string;
strokeLineCap?: string;
strokeOpacity?: number;
strokeStyle?: string;
strokeWeight?: number;
}
clip?: boolean;
enableClicking?: boolean;
enableEditing?: boolean;
enableMassClear?: boolean;
geodesic?: boolean;
linkRight?: boolean;
strokeColor?: string;
strokeLineCap?: string;
strokeOpacity?: number;
strokeStyle?: string;
strokeWeight?: number;
}
属性
是否进行跨经度180度裁剪,绘制跨经度180度的折线时可设置为 false 以优化效果,默认值:true
是否响应点击事件,默认值:true
是否启用线编辑,默认值:false
是否在调用 map.clearOverlays() 时清除此覆盖物,默认值:true
是否开启大地线模式,为 true 时两点连线将以大地线的形式呈现,默认值:false
跨180度经线时走右侧,默认值:false
折线颜色,格式为 '#xxxxxx',默认值:'#000'
描边线端头类型,可选 'round'、'butt'、'square',默认值:'round'
折线的透明度,取值范围0 - 1,默认值:1
折线的样式,支持 'solid'、'dashed'、'dotted',默认值:'solid'
折线的宽度,以像素为单位,默认值:2
此类表示Polyline构造函数的可选参数。它没有构造函数,但可通过对象字面量形式表示。