PointStyle Class

PointStyle(typeopt, outlineopt)

线符号

Fx构造函数

# new PointStyle(typeopt, outlineopt)

标记符号

参数:
名称 类型 属性 默认值 描述
type String <optional>
'simple-fill'

marker类型:可选值"simple-fill"|"picture-fill"

outline SimpleLineSymbol <optional>

简单标记轮廓线符号

作者:
  • 基础平台-潘卓然

查看源代码 service/base/symbols/FillSymbol.js, line 6

PointStyle(typeopt, coloropt, widthopt)

线符号

Fx构造函数

# new PointStyle(typeopt, coloropt, widthopt)

标记符号

参数:
名称 类型 属性 默认值 描述
type String <optional>
'simple-line'

marker类型:只能是'simple-line'

color String <optional>
0

线符号颜色,默认为'rgb(0,0,0)'

width Number <optional>
0

线符号宽度,默认为0.75像素

作者:
  • 基础平台-潘卓然

查看源代码 service/base/symbols/LineSymbol.js, line 5

PointStyle(typeopt, angleopt, xoffsetopt, yoffsetopt)

标记符号

Fx构造函数

# new PointStyle(typeopt, angleopt, xoffsetopt, yoffsetopt)

标记符号

参数:
名称 类型 属性 默认值 描述
type String <optional>
'simple-marker'

marker类型:可选"simple-marker"|"picture-marker"

angle Number <optional>
0

标记角度,默认为0

xoffset Number <optional>
0

标记x偏移,默认为0像素

yoffset Number <optional>
0

标记y偏移,默认为0像素

作者:
  • 基础平台-潘卓然

查看源代码 service/base/symbols/MarkerSymbol.js, line 5

PointStyle(typeopt, heightopt, outlineopt, urlopt, widthopt, xoffsetopt, xscaleopt, yoffsetopt, yscaleopt)

图片填充符号

Fx构造函数

# new PointStyle(typeopt, heightopt, outlineopt, urlopt, widthopt, xoffsetopt, xscaleopt, yoffsetopt, yscaleopt)

简单标记符号

参数:
名称 类型 属性 默认值 描述
type String <optional>
'picture-fill'

简单填充符号类型,只能是picture-fill

height Number <optional>
12

简单填充符号颜色,默认为12

outline SimpleLineSymbol <optional>

简单填充符号轮廓

url String <optional>

简单填充符号颜色

width Number <optional>
12

简单填充符号颜色,默认为12

xoffset Number <optional>
0

简单填充符号颜色,默认为0

xscale Number <optional>
1

简单填充符号颜色,默认为1

yoffset Number <optional>
0

简单填充符号颜色,默认为0

yscale Number <optional>
1

简单填充符号颜色,默认为1

作者:
  • 基础平台-潘卓然

查看源代码 service/base/symbols/PictureFillSymbol.js, line 7

PointStyle(typeopt, coloropt, outlineopt, styleopt)

简单填充符号

Fx构造函数

# new PointStyle(typeopt, coloropt, outlineopt, styleopt)

简单标记符号

参数:
名称 类型 属性 默认值 描述
type String <optional>
'simple-fill'

简单填充符号类型,只能是simple-line

color String <optional>
'rgba(0, 0, 0, 0.25)'

简单填充符号颜色,默认为'rgba(0, 0, 0, 0.25)'

outline SimpleLineSymbol <optional>

简单填充符号轮廓

style FillStyle <optional>
'solid'

简单填充符号样式类型,可选"backward-diagonal"|"cross"|"diagonal-cross"|"forward-diagonal"|"horizontal"|"none"|"solid"|"vertical"

作者:
  • 基础平台-潘卓然

查看源代码 service/base/symbols/SimpleFillSymbol.js, line 8

PointStyle(typeopt, capopt, coloropt, joinopt, markeropt, miterLimitopt, styleopt, widthopt)

简单线符号

Fx构造函数

# new PointStyle(typeopt, capopt, coloropt, joinopt, markeropt, miterLimitopt, styleopt, widthopt)

简单标记符号

参数:
名称 类型 属性 默认值 描述
type String <optional>
'simple-line'

类型,只能是simple-line

cap Cap <optional>
'round'

线头类型,默认为圆头round, 可选"butt" 平头 |"round" 圆头 |"square" 方头

color String <optional>
'rgb(0, 0, 0)'

符号颜色,默认为'rgb(0, 0, 0)'

join Join <optional>
'bevel'

拐角类型,可选"miter" 尖角 |"round" 圆角 |"bevel" 平角

marker LineSymbolMarker <optional>

标注类型

miterLimit Number <optional>
2

最大挂角宽度,默认为2

style LineStyle <optional>
'solid'

样式类型,可选"dash"|"dash-dot"|"dot"|"long-dash"|"long-dash-dot"|"long-dash-dot-dot"|"none"|"short-dash"|"short-dash-dot"|"short-dash-dot-dot"|"short-dot"|"solid"

width Number <optional>
0.75

宽度,默认为0.75

作者:
  • 基础平台-潘卓然

查看源代码 service/base/symbols/SimpleLineSymbol.js, line 7

PointStyle(typeopt, angleopt, coloropt, outlineopt, pathopt, sizeopt, styleopt, xoffsetopt, yoffsetopt)

简单标记符号

Fx构造函数

# new PointStyle(typeopt, angleopt, coloropt, outlineopt, pathopt, sizeopt, styleopt, xoffsetopt, yoffsetopt)

简单标记符号

参数:
名称 类型 属性 默认值 描述
type String <optional>
'simple-marker'

marker类型,只能是simple-marker

angle Number <optional>
0

标记角度,默认为0

color String <optional>
0

简单标记颜色,默认为'rgba(255, 255, 255, 0.25)'

outline SimpleLineSymbol <optional>

简单标记轮廓线符号

path Number <optional>

简单标记SVG路径

size Number <optional>
12

简单标记大小,默认为12像素

style MarkStyle <optional>
'circle'

简单标记样式类型,可选"circle"|"square"|"cross"|"x"|"diamond"|"triangle"|"path"

xoffset Number <optional>
0

简单标记x偏移,默认为0像素

yoffset Number <optional>
0

简单标记y偏移,默认为0像素

作者:
  • 基础平台-潘卓然

查看源代码 service/base/symbols/SimpleMarkerSymbol.js, line 8

PointStyle(typeopt, angleopt, backgroundColoropt, backgroundPaddingopt, borderLineColoropt, borderLineSizeopt, textDecorationUnderlineColoropt, textDecorationUnderlineWidthopt, textDecorationThroughlineColoropt, textDecorationThroughlineWidthopt, textShadowOffsetXopt, textShadowOffsetYopt, textShadowColoropt, textShadowBluropt, coloropt, fontopt, haloColoropt, haloSizeopt, horizontalAlignmentopt, kerningopt, letterSpacingopt, lineHeightopt, lineWidthopt, lineMaxNumopt, textWrapsopt, rotatedopt, textopt, verticalAlignmentopt, xoffsetopt, yoffsetopt)

文本符号

Fx构造函数

# new PointStyle(typeopt, angleopt, backgroundColoropt, backgroundPaddingopt, borderLineColoropt, borderLineSizeopt, textDecorationUnderlineColoropt, textDecorationUnderlineWidthopt, textDecorationThroughlineColoropt, textDecorationThroughlineWidthopt, textShadowOffsetXopt, textShadowOffsetYopt, textShadowColoropt, textShadowBluropt, coloropt, fontopt, haloColoropt, haloSizeopt, horizontalAlignmentopt, kerningopt, letterSpacingopt, lineHeightopt, lineWidthopt, lineMaxNumopt, textWrapsopt, rotatedopt, textopt, verticalAlignmentopt, xoffsetopt, yoffsetopt)

文本符号

参数:
名称 类型 属性 默认值 描述
type String <optional>
'text'

marker类型:只能是"text"

angle Number <optional>
0

角度

backgroundColor String <optional>

背景颜色

backgroundPadding Number <optional>
0

背景内边距

borderLineColor String <optional>

边界颜色

borderLineSize Number <optional>

边界宽度

textDecorationUnderlineColor String <optional>

文字下划线颜色

textDecorationUnderlineWidth Number <optional>

文字下划线宽度

textDecorationThroughlineColor String <optional>

文字删除线颜色

textDecorationThroughlineWidth Number <optional>

文字删除线宽度

textShadowOffsetX Number <optional>

文字阴影横轴偏移

textShadowOffsetY Number <optional>

文字阴影纵轴偏移

textShadowColor String <optional>

文字阴影颜色

textShadowBlur Number <optional>

文字阴影模糊度

color String <optional>
'rgb(0,0,0)'

颜色

font Font <optional>

字体

haloColor String <optional>

光晕颜色

haloSize Number <optional>

光晕大小

horizontalAlignment HorizontalAlignment <optional>
'center'

水平方向,可选"left"|"right"|"center"

kerning Boolean <optional>
true

空格间距

letterSpacing Number <optional>
0

文字间距

lineHeight Number <optional>
1.0

行高

lineWidth Number <optional>
192

行宽

lineMaxNum Number <optional>
3

文字最大行数

textWraps Boolean <optional>
false

是否换行

rotated Boolean <optional>
false

是否旋转

text String <optional>

显示内容

verticalAlignment VerticalAlignment <optional>
'baseline'

垂直对齐,可选"baseline"|"top"|"middle"|"bottom"

xoffset Number <optional>
0

x偏移

yoffset Number <optional>
0

y偏移

作者:
  • 基础平台-潘卓然

查看源代码 service/base/symbols/TextSymbol.js, line 7