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

Method addData

src/leaflet/overlay/mapv/MapVRenderer.js:133–142  ·  view source on GitHub ↗

* @function MapVRenderer.prototype.addData * @description 添加数据。 * @param {Object} data - 待添加的数据。 * @param {Object} options - 参数。

(data, options)

Source from the content-addressed store, hash-verified

131 * @param {Object} options - 参数。
132 */
133 addData(data, options) {
134 var _data = data;
135 if (data && data.get) {
136 _data = data.get();
137 }
138 this.dataSet.add(_data);
139 this.update({
140 options: options
141 });
142 }
143
144 /**
145 * @function MapVRenderer.prototype.update

Callers 5

addFeaturesFunction · 0.45
Base.jsFile · 0.45
TurfLayer.jsFile · 0.45
MapVLayer.jsFile · 0.45
FGBLayer.jsFile · 0.45

Calls 3

updateMethod · 0.95
getMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected