File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed
src/mapboxgl/overlay/symbol Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,12 @@ import MapExtendSymbol from './MapExtendSymbol';
81
81
* :---- |:--- |:---
82
82
* id |string |符号ID
83
83
*
84
+ *
85
+ * **Returns**
86
+ * 类型 |描述
87
+ * :--- |:---
88
+ * boolean |符号是否存在
89
+ *
84
90
* **Example**
85
91
* ```
86
92
* const pointExists = map.hasSymbol('point-1');
@@ -103,9 +109,9 @@ import MapExtendSymbol from './MapExtendSymbol';
103
109
* ## mapboxgl.Map.prototype.updateSymbol
104
110
* 更新指定 ID 的符号。
105
111
*
106
- * 参数名称 |类型 |描述
107
- * : ---- |: --- |: ---
108
- * id |string |已经添加的符号ID
112
+ * | 参数名称 |类型 |描述 | ||
113
+ * | ---- |--- | --- |---|---|
114
+ * id |string |已经添加的符号ID|||
109
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 属性除外)组成的符号对象|||
110
116
* | | |参数名称 |类型 |描述 |
111
117
* | | |paint |object |Mapbox Layers [paint](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#paint-property)|
@@ -124,6 +130,12 @@ import MapExtendSymbol from './MapExtendSymbol';
124
130
* :---- |:--- |:---
125
131
* id |string |符号ID
126
132
*
133
+ * **Returns**
134
+ * 类型 |描述
135
+ * :--- |:---
136
+ * 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 属性除外)组成的符号对象
137
+ *
138
+ *
127
139
* **Example**
128
140
* ```
129
141
* const point1 = map.getSymbol('point-1');
@@ -156,6 +168,11 @@ import MapExtendSymbol from './MapExtendSymbol';
156
168
* index |number |符号数组的index, 符号不是数组的设置为null
157
169
* name |string |属性名称
158
170
*
171
+ * **Returns**
172
+ * 类型 |描述
173
+ * :--- |:---
174
+ * any |属性值
175
+ *
159
176
* **Example**
160
177
* ```
161
178
* map.getSymbolProperty('point-1', null, "icon-color");
You can’t perform that action at this time.
0 commit comments