MapLabelStyle

MapLabel 的样式配置 *

interface MapLabelStyle {
    color?: string;
    direction?: number;
    fontSize?: number;
    guid?: string;
    haloSize?: number;
    icon?: string;
    iconSize?: number[];
    strokeColor?: string;
    type?: string;
}

属性

文字颜色,合法的css颜色值

文字位于坐标的方向,取值为:0, 1, 2, 3, 4 分别表示bottom, right, top, left, center

文字大小

文字对应的唯一标识

文字描边尺寸

如果添加icon则需要给icon的url

icon的宽度和高度,按照1x的显示尺寸给出,[width, height]

描边颜色,合法的css颜色值

类型,默认为fixed(固定标注),此外还有line(道路标注)、biaopai(标牌)