* @function VideoMap.prototype.removeLayer * @description 移除图层。 * @param {string} id - 图层 id。
(id)
| 172 | * @param {string} id - 图层 id。 |
| 173 | */ |
| 174 | removeLayer(id) { |
| 175 | if (!this._mapExisted()) { |
| 176 | return; |
| 177 | } |
| 178 | if (this.layerCache[id]) { |
| 179 | this.layerCache[id].remove(); |
| 180 | this.layerCache[id] = null; |
| 181 | delete this.layerCache[id]; |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | /** |
| 186 | * @function VideoMap.prototype.removeSource |
no test coverage detected