MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / addFeatures

Method addFeatures

src/openlayers/overlay/Graph.js:91–107  ·  view source on GitHub ↗

* @function Graph.prototype.addFeatures * @description 向专题图图层中添加数据。 * @param {(ServerFeature|ThemeFeature)} features - 待添加的要素。

(features)

Source from the content-addressed store, hash-verified

89 * @param {(ServerFeature|ThemeFeature)} features - 待添加的要素。
90 */
91 addFeatures(features) {
92 var ret = this.dispatchEvent({
93 type: 'beforefeaturesadded',
94 value: {
95 features: features
96 }
97 });
98 if (ret === false) {
99 return;
100 }
101 //转换 features 形式
102 this.features = this.toiClientFeature(features);
103 //绘制专题要素
104 if (this.renderer) {
105 this.changed();
106 }
107 }
108
109 /**
110 * @function Graph.prototype.redrawThematicFeatures

Callers 15

addFeaturesFunction · 0.45
addThemeFeaturesFunction · 0.45
addFeaturesExpectFunction · 0.45

Calls 1

toiClientFeatureMethod · 0.45

Tested by

no test coverage detected