@@ -42,8 +42,8 @@ import MapExtendSymbol from './MapExtendSymbol';
4242* |id |string |符号ID |||
4343* |symbol |object |由Mapbox Layers中的[paint](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#paint-property)、[layout](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#layout-property)(visibility 属性除外)组成的符号对象|||
4444* | | |参数名称 |类型 |描述 |
45- * | | |paint |object |Mapbox Layers [paint](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#paint-property)|
46- * | | |layout |object |Mapbox Layers [layout](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#layout-property)(visibility 属性除外)|
45+ * | | |paint |object |可选, Mapbox Layers [paint](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#paint-property)|
46+ * | | |layout |object |可选, Mapbox Layers [layout](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#layout-property)(visibility 属性除外)|
4747*
4848* **Example**
4949* ```
@@ -114,8 +114,8 @@ import MapExtendSymbol from './MapExtendSymbol';
114114* id |string |已经添加的符号ID|||
115115* |symbol |object |由Mapbox Layers中的[paint](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#paint-property)、[layout](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#layout-property)(visibility 属性除外)组成的符号对象|||
116116* | | |参数名称 |类型 |描述 |
117- * | | |paint |object |Mapbox Layers [paint](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#paint-property)|
118- * | | |layout |object |Mapbox Layers [layout](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#layout-property)(visibility 属性除外)|
117+ * | | |paint |object |可选, Mapbox Layers [paint](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#paint-property)|
118+ * | | |layout |object |可选, Mapbox Layers [layout](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#layout-property)(visibility 属性除外)|
119119*
120120* **Example**
121121* ```
@@ -148,7 +148,7 @@ import MapExtendSymbol from './MapExtendSymbol';
148148* 参数名称 |类型 |描述
149149* :---- |:--- |:---
150150* id |string |符号ID
151- * index |number |符号数组的index, 符号不是数组的设置为null
151+ * index |number、null |符号数组的index, 符号不是数组的设置为null
152152* name |string |属性名称
153153* value |any |属性值
154154*
@@ -165,8 +165,8 @@ import MapExtendSymbol from './MapExtendSymbol';
165165* 参数名称 |类型 |描述
166166* :---- |:--- |:---
167167* id |string |符号ID
168- * index |number |符号数组的index, 符号不是数组的设置为null
169- * name |string |属性名称
168+ * index |number、null |符号数组的index, 符号不是数组的设置为null
169+ * name |string |可选, 属性名称
170170*
171171* **Returns**
172172* 类型 |描述
0 commit comments