* @function MapVRenderer.prototype.update * @description 更新图层。 * @param {Object} opt - 待更新的数据。 * @param {Object} opt.data - mapv 数据集。 * @param {Object} opt.options - mapv 绘制参数。
(opt)
| 149 | * @param {Object} opt.options - mapv 绘制参数。 |
| 150 | */ |
| 151 | update(opt) { |
| 152 | var update = opt || {}; |
| 153 | var _data = update.data; |
| 154 | if (_data && _data.get) { |
| 155 | _data = _data.get(); |
| 156 | } |
| 157 | if (_data != undefined) { |
| 158 | this.dataSet.set(_data); |
| 159 | } |
| 160 | super.update({ |
| 161 | options: update.options |
| 162 | }); |
| 163 | } |
| 164 | |
| 165 | /** |
| 166 | * @function MapVRenderer.prototype.getData |
no test coverage detected