## 渲染符号详细说明

### 1.渲染符号说明

#### 支持的符号类型

符号名称 | 类名 | Api文档链接
--- | --- | ---
简单标注符号 | SimpleMarkerSymbol | SimpleMarkerSymbol
图片标注符号 | PictureMarkerSymbol | PictureMarkerSymbol
简单线符号 | SimpleLineSymbol | SimpleLineSymbol
简单填充符号 | SimpleFillSymbol | SimpleFillSymbol
图片填充符号 | PictureFillSymbol | PictureFillSymbol
文本符号 | TextSymbol | TextSymbol
MapGIS文本符号 | MapGISTextSymbol | MapGISTextSymbol
三维点符号 | PointSymbol3D | PointSymbol3D
三维线符号 | LineSymbol3D | LineSymbol3D
三维体符号 | PolygonSymbol3D | PolygonSymbol3D
注记三维符号 | LabelSymbol3D | LabelSymbol3D

#### 渲染符号对应的Cesium对象

符号名称 | 类名 | 对应的Cesium对象
--- | --- | ---
简单标注符号 | SimpleMarkerSymbol | Cesium.PointPrimitive()
简单标注符号 | SimpleMarkerSymbol | Cesium.Billboard()
图片标注符号 | PictureMarkerSymbol | Cesium.Billboard()
简单线符号 | SimpleLineSymbol | Cesium.Primitive()
简单线符号 | SimpleLineSymbol | Cesium.GroundPolylinePrimitive()
简单填充符号 | SimpleFillSymbol | Cesium.Primitive()
简单填充符号 | SimpleFillSymbol | Cesium.GroundPrimitive()
图片填充符号 | PictureFillSymbol | Cesium.Primitive()
图片填充符号 | PictureFillSymbol | Cesium.GroundPrimitive()
文本符号 | TextSymbol | Cesium.Billboard()
MapGIS文本符号 | MapGISTextSymbol | Cesium.Billboard()
三维图标符号图层 | IconSymbol3DLayer | Cesium.Billboard()
三维文字符号图层 | TextSymbol3DLayer | Cesium.Label()
三维对象符号图层 | ObjectSymbol3DLayer | Cesium.Primitive()
三维对象符号图层 | ObjectSymbol3DLayer | Cesium.Model()
三维线符号图层 | LineSymbol3DLayer | Cesium.Primitive()
三维线符号图层 | LineSymbol3DLayer | Cesium.GroundPolylinePrimitive()
三维管道符号图层 | PathSymbol3DLayer | Cesium.Primitive()
三维区符号图层 | FillSymbol3DLayer | Cesium.Primitive()
三维拉伸区符号图层 | ExtrudeSymbol3DLayer | Cesium.Primitive()

### 2.限制

#### MapViewLeaflet视图上

图元类型 | 支持的符号类型 |
--- | --- | ---
点 | SimpleMarkerSymbol，PictureMarkerSymbol |
线 | SimpleLineSymbol |
区 | SimpleFillSymbol，PictureFillSymbol，TextSymbol，SimpleMarkerSymbol，PictureMarkerSymbol |
注记 | TextSymbol |

#### MapViewMapboxgl视图上

图元类型 | 支持的符号类型 |
--- | --- | ---
点 | SimpleMarkerSymbol，PictureMarkerSymbol |
线 | SimpleLineSymbol |
区 | SimpleFillSymbol，PictureFillSymbol，TextSymbol，SimpleMarkerSymbol，PictureMarkerSymbol |
注记 | TextSymbol |

- mapboxgl引擎限制，目前图片资源仅支持 png, webp, or jpg format传入
- mapboxgl引擎限制，几何图元图层使用PictureFillSymbol时，无法设置填充图片的（xscale,yscale,width,height）

#### SceneViewCesium视图上

图元类型 | 支持的符号类型 |
--- | --- | ---
点 | SimpleMarkerSymbol，PictureMarkerSymbol |
线 | SimpleLineSymbol |
区 | SimpleFillSymbol，PictureFillSymbol，TextSymbol，MapGISTextSymbol，SimpleMarkerSymbol，PictureMarkerSymbol |
注记 | TextSymbol，MapGISTextSymbol |

#### 各符号属性在引擎上的限制

- SimpleMarkerSymbol

三级功能项 | 备注 | mapboxgl插件层 -要素图层 | mapboxgl插件层-几何图层 | 备注 | cesium插件层 | 备注 | leaflet插件层 | 备注 | openlayers插件层 | 备注
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
type |  |  | TRUE |  | TRUE |  | TRUE |  | FALSE |
color |  | TRUE | TRUE |  | TRUE |  | TRUE |  | FALSE |
path |  | FALSE | FALSE |  | FALSE |  | TRUE |  | FALSE |
style（"circle"|"square"|"cross"|"x"|"diamond"|"triangle"） |  | TRUE | FALSE | 仅支持‘circle形状’ | TRUE |  | TRUE |  | FALSE |
xoffset |  | TRUE | FALSE | 此属性不支持表达式 | TRUE |  | TRUE |  | FALSE |
yoffset |  | TRUE | FALSE | 此属性不支持表达式 | TRUE |  | TRUE |  | FALSE |
outline |  | TRUE | TRUE | 仅支持边线color，width | TRUE |  | TRUE |  | FALSE |
angle |  | FALSE | FALSE |  | TRUE |  | TRUE |  | FALSE |
size |  | TRUE | TRUE |  | TRUE |  | TRUE |  | FALSE |

- PictureMarkerSymbol

三级功能项 | 备注 | mapboxgl插件层 -要素图层 | mapboxgl插件层-几何图层 | 备注 | cesium插件层 | 备注 | leaflet插件层 | 备注 | openlayers插件层 | 备注
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
type |  | TRUE | TRUE |  | TRUE |  | TRUE |  | FALSE |
angle |  | TRUE | TRUE |  | TRUE |  | TRUE |  | FALSE |
xoffset |  | TRUE | FALSE |  | TRUE |  | TRUE |  | FALSE |
yoffset |  | TRUE | FALSE |  | TRUE |  | TRUE |  | FALSE |
width |  | TRUE | TRUE |  | TRUE |  | TRUE |  | FALSE |
height |  | TRUE | TRUE |  | TRUE |  | TRUE |  | FALSE |
url |  | FALSE | FALSE | 不支持设置符号图像 | TRUE |  | TRUE |  | FALSE |

- SimpleLineSymbol

三级功能项 | 备注 | mapboxgl插件层 -要素图层 | mapboxgl插件层-几何图层 | 备注 | cesium插件层 | 备注 | leaflet插件层 | 备注 | openlayers插件层 | 备注
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
type |  | TRUE | TRUE |  | TRUE |  | TRUE |  | FALSE |
color |  | TRUE | TRUE |  | TRUE |  | TRUE |  | FALSE |
width |  | TRUE | TRUE |  | TRUE |  | TRUE |  | FALSE |
cap |  | TRUE | FALSE | 此属性不支持表达式 | FALSE |  | TRUE |  | FALSE |
join |  | TRUE | TRUE |  | FALSE |  | TRUE |  | FALSE |
marker |  | FALSE | FALSE | 此属性不支持表达式 | FALSE |  | TRUE |  | FALSE |
miterLimit |  | TRUE | FALSE | 此属性不支持表达式 | FALSE |  | TRUE |  | FALSE |
style | 可选（"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"） | FALSE | FALSE | 此属性不支持表达式 | TRUE |  | TRUE |  | FALSE |

- SimpleFillSymbol

三级功能项 | 备注 | mapboxgl插件层 -要素图层 | mapboxgl插件层-几何图层 | 备注 | cesium插件层 | 备注 | leaflet插件层 | 备注 | openlayers插件层 | 备注
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
type |  | TRUE | TRUE |  | TRUE |  | TRUE |  | FALSE |
color |  | TRUE | TRUE |  | TRUE |  | TRUE |  | FALSE |
outline |  | TRUE | TRUE | 仅支持边线color，width | TRUE |  | TRUE |  | FALSE |
style | 可选（"backward-diagonal"|"cross"|"diagonal-cross"|"forward-diagonal"|"horizontal"|"none"|"solid"|"vertical"） | FALSE | FALSE | 暂时不支持，后续动态生成纹理扩充 | TRUE |  | TRUE |  | FALSE |

- PictureFillSymbol

三级功能项 | 备注 | mapboxgl插件层 -要素图层 | mapboxgl插件层-几何图层 | 备注 | cesium插件层 | 备注 | leaflet插件层 | 备注 | openlayers插件层 | 备注
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
type |  | FALSE | FALSE |  | TRUE |  | TRUE |  | FALSE |
color |  | FALSE | FALSE |  | TRUE |  | TRUE |  | FALSE |
outline |  | FALSE | FALSE |  | TRUE |  | TRUE |  | FALSE |
url |  | FALSE | FALSE |  | TRUE |  | TRUE |  | FALSE |
width |  | FALSE | FALSE |  | FALSE | cesium里面加载图片没有高宽的概念、无法预加载处理图片 | TRUE |  | FALSE |
xoffset |  | FALSE | FALSE |  | FALSE | 无相关接口可用 | TRUE |  | FALSE |
yoffset |  | FALSE | FALSE |  | FALSE | 无相关接口可用 | TRUE |  | FALSE |
xscale |  | FALSE | FALSE |  | TRUE |  | TRUE |  | FALSE |
yscale |  | FALSE | FALSE |  | TRUE |  | TRUE |  | FALSE |
height |  | FALSE | FALSE |  | FALSE | cesium里面加载图片没有高宽的概念、无法预加载处理图片 | TRUE |  | FALSE |

- TextSymbol

三级功能项 | 备注 | mapboxgl插件层 -要素图层 | mapboxgl插件层-几何图层 | 备注 | cesium插件层 | 备注 | leaflet插件层 | 备注 | openlayers插件层 | 备注
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
text |  | TRUE | TRUE |  | TRUE |  | TRUE |  | FALSE |
color |  | TRUE | TRUE |  | TRUE |  | TRUE |  | FALSE |
xoffset |  | TRUE | FALSE |  | TRUE |  | TRUE |  | FALSE |
yoffset |  | TRUE | FALSE |  | TRUE |  | TRUE |  | FALSE |
horizontalAlignment |  | TRUE | FALSE |  | TRUE |  | TRUE |  | FALSE |
font |  | FALSE | FALSE | 不支持文字设置字体 | TRUE |  | TRUE |  | FALSE |
haloColor |  | TRUE | TRUE |  | TRUE |  | TRUE |  | FALSE |
haloSize |  | TRUE | TRUE |  | TRUE |  | TRUE |  | FALSE |
kerning |  | TRUE | TRUE |  | FALSE | 三维底层api限制，不支持 | TRUE |  | FALSE |
lineHeight |  | TRUE | FALSE |  | TRUE |  | TRUE |  | FALSE |
lineWidth |  | TRUE | FALSE |  | TRUE |  | TRUE |  | FALSE |
rotated |  | TRUE | TRUE |  | TRUE |  | TRUE |  | FALSE |
type |  | TRUE | FALSE |  | TRUE |  | TRUE |  | FALSE |
verticalAlignment |  | TRUE | FALSE |  | TRUE |  | TRUE |  | FALSE |
angle |  | TRUE | TRUE |  | TRUE |  | TRUE |  | FALSE |
backgroundColor |  | FALSE | FALSE |  | TRUE |  | TRUE |  | FALSE |
borderLineColor |  | FALSE | FALSE |  | FALSE | 三维底层api限制，不支持 | TRUE |  | FALSE |
borderLineSize |  | FALSE | FALSE |  | FALSE | 三维底层api限制，不支持 | TRUE |  | FALSE |

- MapGISTextSymbol

三级功能项 | 备注 | mapboxgl插件层 -要素图层 | mapboxgl插件层-几何图层 | 备注 | cesium插件层 | 备注 | leaflet插件层 | 备注 | openlayers插件层 | 备注
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
backgroundPadding |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
backgroundImage | 测试接口，后面可能会调整 | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
textDecorationUnderlineColor |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
textDecorationUnderlineWidth |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
textDecorationThroughlineColor |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
textDecorationThroughlineWidth |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
textShadowOffsetX |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
textShadowOffsetY |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
textShadowBlur |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
textShadowColor |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
letterSpacing |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
lineMaxNum |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
textWraps |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
textExtraIcon | 测试接口，后面可能会调整 | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
textExtraIconAnchor | 测试接口，后面可能会调整 | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
textExtraIconSize | 测试接口，后面可能会调整 | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |

三维符号图层

- IconSymbol3DLayer

三级功能项 | 备注 | mapboxgl插件层 -要素图层 | mapboxgl插件层-几何图层 | 备注 | cesium插件层 | 备注 | leaflet插件层 | 备注 | openlayers插件层 | 备注
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
resource |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
size |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
material |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
outline |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
anchor |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
anchorPosition |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
anchor |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |

- ObjectSymbol3DLayer

三级功能项 | 备注 | mapboxgl插件层 -要素图层 | mapboxgl插件层-几何图层 | 备注 | cesium插件层 | 备注 | leaflet插件层 | 备注 | openlayers插件层 | 备注
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
anchor |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |
anchorPosition |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |
castShadows |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
heading |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |
roll |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |
tilt |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |
height |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
width |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
depth |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
material |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
resource |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |

- LineSymbol3DLayer

三级功能项 | 备注 | mapboxgl插件层 -要素图层 | mapboxgl插件层-几何图层 | 备注 | cesium插件层 | 备注 | leaflet插件层 | 备注 | openlayers插件层 | 备注
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
size |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
material |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
pattern |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
cap |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |
join |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |
marker |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |

- PathSymbol3DLayer

三级功能项 | 备注 | mapboxgl插件层 -要素图层 | mapboxgl插件层-几何图层 | 备注 | cesium插件层 | 备注 | leaflet插件层 | 备注 | openlayers插件层 | 备注
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
anchor |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |
anchorPosition |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |
castShadows |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
heading |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |
roll |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |
tilt |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |
height |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
width |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
depth |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
material |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
resource |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |

- FillSymbol3DLayer

三级功能项 | 备注 | mapboxgl插件层 -要素图层 | mapboxgl插件层-几何图层 | 备注 | cesium插件层 | 备注 | leaflet插件层 | 备注 | openlayers插件层 | 备注
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
material |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
castShadows |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
outline |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |
pattern |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |

- WaterSymbol3DLayer

三级功能项 | 备注 | mapboxgl插件层 -要素图层 | mapboxgl插件层-几何图层 | 备注 | cesium插件层 | 备注 | leaflet插件层 | 备注 | openlayers插件层 | 备注
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
|  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |

- ExtrudeSymbol3DLayer

三级功能项 | 备注 | mapboxgl插件层 -要素图层 | mapboxgl插件层-几何图层 | 备注 | cesium插件层 | 备注 | leaflet插件层 | 备注 | openlayers插件层 | 备注
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
material |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
size |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
castShadows |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
edges |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |

- TextSymbol3DLayer

三级功能项 | 备注 | mapboxgl插件层 -要素图层 | mapboxgl插件层-几何图层 | 备注 | cesium插件层 | 备注 | leaflet插件层 | 备注 | openlayers插件层 | 备注
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
text |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
font |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
size |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
material |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
background |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
halo |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |
horizontalAlignment |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
verticalAlignment |  | FALSE | FALSE |  | TRUE |  | FALSE |  | FALSE |
lineHeight |  | FALSE | FALSE |  | FALSE |  | FALSE |  | FALSE |