@@ -42,8 +42,8 @@ import MapExtendSymbol from './MapExtendSymbol';
42
42
* |id |string |符号ID |||
43
43
* |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 属性除外)组成的符号对象|||
44
44
* | | |参数名称 |类型 |描述 |
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 属性除外)|
47
47
*
48
48
* **Example**
49
49
* ```
@@ -114,8 +114,8 @@ import MapExtendSymbol from './MapExtendSymbol';
114
114
* id |string |已经添加的符号ID|||
115
115
* |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 属性除外)组成的符号对象|||
116
116
* | | |参数名称 |类型 |描述 |
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 属性除外)|
119
119
*
120
120
* **Example**
121
121
* ```
@@ -148,7 +148,7 @@ import MapExtendSymbol from './MapExtendSymbol';
148
148
* 参数名称 |类型 |描述
149
149
* :---- |:--- |:---
150
150
* id |string |符号ID
151
- * index |number |符号数组的index, 符号不是数组的设置为null
151
+ * index |number、null |符号数组的index, 符号不是数组的设置为null
152
152
* name |string |属性名称
153
153
* value |any |属性值
154
154
*
@@ -165,8 +165,8 @@ import MapExtendSymbol from './MapExtendSymbol';
165
165
* 参数名称 |类型 |描述
166
166
* :---- |:--- |:---
167
167
* id |string |符号ID
168
- * index |number |符号数组的index, 符号不是数组的设置为null
169
- * name |string |属性名称
168
+ * index |number、null |符号数组的index, 符号不是数组的设置为null
169
+ * name |string |可选, 属性名称
170
170
*
171
171
* **Returns**
172
172
* 类型 |描述
0 commit comments