Style |
Defines the point feature style supported by the WebMap specification. For related examples, please refer to VectorLayer.
The basic style of the point.
Attribute | Type | Description |
type |
string |
Basic point style. Fixed constant: "BASIC_POINT". |
radius |
number |
Point radius. |
fillColor |
string |
The point fill color, the attribute value is the hexadecimal code corresponding to the color. |
fillOpacity |
string |
The opacity of the fill color. The maximum value is 1 and the minimum value is 0. |
strokeColor | string | The outline color of the point. The attribute value is the hexadecimal code corresponding to the color. |
strokeOpacity |
string |
The opacity of the stroke. The maximum value is 1 and the minimum value is 0. |
strokeWidth |
number |
The stroke width. |
offsetX |
number |
The offset value of the point in the X direction, the value range is [-1,1]. |
offsetY |
number |
The offset value of the point in the Y direction, the value range is [-1,1]. |
The symbol style of the point.
Attribute | Type | Description |
type |
string |
Symbol point style. Fixed constant: "SYMBOL_POINT". |
className |
string |
The class name of the symbol. |
name |
string |
The symbol name. |
unicode |
string |
The symbol code. |
fillColor |
string |
The point fill color, the attribute value is the hexadecimal code corresponding to the color. |
fillOpacity |
string |
The opacity of the fill color. The maximum value is 1 and the minimum value is 0. |
fontSize |
string |
The symbol size. |
strokeColor | string | The outline color of the point. The attribute value is the hexadecimal code corresponding to the color. |
strokeOpacity |
string |
The opacity of the stroke. The maximum value is 1 and the minimum value is 0. |
strokeWidth |
number |
The stroke width. |
offsetX |
number |
The offset value of the point in the X direction, the value range is [-1,1]. |
offsetY |
number |
The offset value of the point in the Y direction, the value range is [-1,1]. |
rotation |
number |
The rotation offset value of the symbol, in radians. |
The symbol style of the point in SVG format.
Attribute | Type | Description |
type |
string |
The SVG format point symbol style. Fixed constant: "SVG_POINT"。 |
radius |
number |
Point radius. |
fillColor |
string |
The point fill color, the attribute value is the hexadecimal code corresponding to the color. |
fillOpacity |
string |
The opacity of the fill color. The maximum value is 1 and the minimum value is 0. |
strokeColor | string | The outline color of the point. The attribute value is the hexadecimal code corresponding to the color. |
strokeOpacity |
string |
The opacity of the stroke. The maximum value is 1 and the minimum value is 0. |
strokeWidth |
number |
The stroke width. |
url |
string |
The SVG url. |
offsetX |
number |
The offset value of the point in the X direction, the value range is [-1,1]. |
offsetY |
number |
The offset value of the point in the Y direction, the value range is [-1,1]. |
rotation |
number |
The rotation offset value of the symbol, in radians. |
The point symbol style of the picture format.
Attribute | Type | Description |
type |
string |
Picture point symbol style. Fixed constant: "IMAGE_POINT". |
radius |
number |
Point radius. |
imageInfo |
The image information. |
|
offsetX |
number |
The offset value of the point in the X direction, the value range is [-1,1]. |
offsetY |
number |
The offset value of the point in the Y direction, the value range is [-1,1]. |
rotation |
number |
The rotation offset value of the symbol, in radians. |
Attribute | Type | Description |
size |
object |
Contains two number type sub-attributes "h" and "w", which are used to define the height and width of the picture respectively. |
url |
string |
[Required] The image address. |
Defines the styles of line features supported by the WebMap specification. It supports storing line styles in two ways, arrays and objects. The content of the LineStyle object is LineStyleDefinition or array[LineStyleDefinition]. For related examples, please refer to: VectorLayer.
Attribute | Type | Description |
type |
string |
The line style. Fixed constant: "LINE". |
lineDash |
string |
Defines the line style. Optional constants: "solid", "dot", "dash", "dashdot", "longdash", "longdashdot". |
strokeColor | string | The line color. The attribute value is the hexadecimal code corresponding to the color. Example: "#0000ff". |
strokeOpacity |
string |
The opacity of the line. The maximum value is 1 and the minimum value is 0. |
strokeWidth |
number |
The line width. |
Defines the style of polygons supported by the WebMap specification. For related examples, please refer to VectorLayer.
Attribute | Type | Description |
type |
string |
The polygon style. Fixed constant: "POLYGON". |
lineDash |
string |
The stroke pattern of the polygon. Optional constants: "solid", "dot", "Master", "dash dot", "Dragon Master", "Dragon Master dot". |
fillColor |
string |
The fill color of polygons, the attribute value is the hexadecimal code corresponding to the color. |
fillOpacity |
string |
The opacity of the fill color. The maximum value is 1 and the minimum value is 0. |
strokeColor | string | The outline color of the polygon. The attribute value is the hexadecimal code corresponding to the color. |
strokeOpacity |
string |
The opacity of the stroke of the polygon. The maximum value is 1 and the minimum value is 0. |
strokeWidth |
number |
The stroke width. |
Defines the style of lables supported by the WebMap specification. For related examples, please refer to UniqueLayer。
Attribute | Type | Description |
labelFiled |
string |
The label value. |
fontFamily |
string |
The font of the label. |
fill |
string |
The label fill color, the attribute value is the hexadecimal code corresponding to the color. |
fontSize |
string |
The font size of the label. |
filterCondition |
string |
The lable filter condition. |
backgroundFill |
array |
Defines the background color and opacity. Example: [255,255,255,0.7], which means the background color is white, and opacity is 0.7. |
offsetX |
number |
The offset value of the label in the X direction, the value range is [-1,1]. |
offsetY |
number |
The offset value of the label in the Y direction, the value range is [-1,1]. |
textBaseline |
string |
Defines the alignment of the label of the line and polygon features. Optional constants: "middle", "top", and "bottom". |
placement |
string |
Defines the label layout of the line and polygon features. Optional constants: "line" and "point" are optional. |
textAlign |
string |
Defines the label alignment position of the point feature. Optional constants: "left", "right", "center". |
outlineColor |
string |
Defines the outline color of the label text. |
outlineWidth |
string |
Defines the outline width of the label text. |