Type Definitions
-
styleObject
-
Properties:
Name Type Default Description display
string "display" 可选 标号显隐。
color
string #ff0000 可选 线颜色。
lineSymbolID
number 0 可选 线型,支持(0:实线,1:长虚线,2:由点构成的直线,3:由线划线段组成的直线,4:由重复的线划点图案构成的直线)五种线型,随着线宽的变化可以很好的表达线型,但局限于支持的线型,优先级高于。
dashArray
string 可选 线型,它是一个数列,数与数之间用逗号隔开,指定短划线和缺口的长度dashArray,可以自由的设置线型样式,但随着线宽的变化线型表达不理想,优先级低于lineSymbolID。如:"0,0"实线,"5,10"虚线。
opacity
number 1 可选 线透明度(0-1)。
weight
number 2 可选 线宽度,单位:pixel。
surroundLineColor
string "#ffff00" 可选 衬线颜色。
surroundLineColorOpacity
number 1.0 可选 衬线透明度。
surroundLineWidth
number 4 可选 衬线宽度,单位:pixel。
fill
boolean false 可选 填充。适用于面对象
fillColor
string "#ff0000" 可选 填充颜色,渐变填充前景色。
fillOpacity
number 0.31 可选 填充透明度,渐变填充前景透明度。
fillBackColor
string "#ff0000" 可选 渐变填充背景色。
fillBackOpacity
number 1.0 可选 渐变填充背景透明度。
fillGradientMode
string "NONE" 可选 渐变填充样式,可设值:"NONE","LINEAR","RADIAL"。
fontColor
string #000000 可选 字体颜色。
fontSize
number 14 可选 字体大小。
fontFamily
string 微软雅黑 可选 字体类型。
fontOpacity
number 1 可选 字体透明度 (0-1)。
fontStyle
string 可选 字体样式。
fontWeight
string bold 可选 字体粗细,可设值:"normal", "bold", "bolder", "lighter",默认为"bold"。
fontPercent
number 0 可选 字宽百分比 (0-400)。
fontSpace
number 0 可选 文字之间的间距(0-30)。
fontBackground
boolean false 可选 文字背景是否启用。
fontBackgroundColor
string #ff0000 可选 文字背景颜色。(当fontBackground属性为true时,设置该属性有效。)
fontShadow
boolean false 可选 文字阴影是否启用。
fontShadowColor
string #ff0000 可选 文字阴影颜色。(当fontShadow属性为true时,设置该属性有效。)
fontShadowOffsetX
number 0 可选 文字阴影X方向偏移量,单位是:pixel。(当fontShadow属性为true时,设置该属性有效。)
fontShadowOffsetY
number 0 可选 文字阴影Y方向偏移量,单位是:pixel。(当fontShadow属性为true时,设置该属性有效。
fontStroke
boolean false 可选 字体描边是否启用。
fontStrokeColor
string #ff0000 可选 字体描边颜色。(当fontStroke属性为true时,设置该属性有效。)
fontStrokeWidth
string 2px 可选 字体描边宽度。(当fontStroke属性为true时,设置该属性有效。)