SymbolStyle Class

SymbolStyle(symbolopt, opacityopt, coloropt, sizeopt, rotateopt, offsetXopt, offsetYopt, anchoropt)

符号样式

Fx构造函数

# new SymbolStyle(symbolopt, opacityopt, coloropt, sizeopt, rotateopt, offsetXopt, offsetYopt, anchoropt)

符号样式

参数:
名称 类型 属性 默认值 描述
symbol String <optional>
""

符号名称或url

opacity Number <optional>
1

透明度,0~1之间的值,默认为1,不透明

color String <optional>
#FFFFFF

颜色,十六进制或RGB,默认为#FFFFFF,白色

size Number <optional>
1

符号大小

rotate Number <optional>
0

旋转角度,0~360度

offsetX Number <optional>
0

X轴偏移

offsetY Number <optional>
0

Y轴偏移

anchor String <optional>
center

锚点

查看源代码 service/base/style/Symbol.js, line 5