MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / update

Method update

src/openlayers/overlay/mapv/MapvLayer.js:218–230  ·  view source on GitHub ↗

* @function MapvLayer.prototype.update * @description 更新图层。 * @param {Object} opt - 待更新的数据。 * @param {Object} opt.data - mapv 数据集。

(opt)

Source from the content-addressed store, hash-verified

216 * @param {Object} opt.data - mapv 数据集。
217 */
218 update(opt) {
219 var update = opt || {};
220 var _data = update.data;
221 if (_data && _data.get) {
222 _data = _data.get();
223 }
224 if (_data != undefined) {
225 this.dataSet.set(_data);
226 }
227 super.update({
228 options: update.options
229 });
230 }
231
232 draw() {
233 this.canvasLayer.draw();

Callers 3

addDataMethod · 0.95
removeDataMethod · 0.95
clearDataMethod · 0.95

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected