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

Method setData

src/classic/overlay/mapv/MapVRenderer.js:122–130  ·  view source on GitHub ↗

* @function MapvRenderer.prototype.updateData * @description 更新覆盖原数据。 * @param {Object} data - 待更新的数据。 * @param {Object} options - 待更新的数据信息。

(data, options)

Source from the content-addressed store, hash-verified

120 * @param {Object} options - 待更新的数据信息。
121 */
122 setData(data, options) {
123 var _data = data;
124 if (data && data.get) {
125 _data = data.get();
126 }
127 this.dataSet = this.dataSet || new DataSet();
128 this.dataSet.set(_data);
129 this.update({ options: options });
130 }
131
132 /**
133 * @function MapvRenderer.prototype.getData

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected