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

Method createThematicFeature

src/openlayers/overlay/Graph.js:160–173  ·  view source on GitHub ↗

* @function Graph.prototype.createThematicFeature * @description 向专题图图层中添加数据,支持的 feature 类型为:SuperMap iServer 返回的 feature JSON 对象。 * @param {ServerFeature} feature - 待添加的要素。 *

(feature)

Source from the content-addressed store, hash-verified

158 *
159 */
160 createThematicFeature(feature) {
161 var thematicFeature;
162 // 检查图表创建条件并创建图形
163 if (FeatureTheme[this.chartsType] && this.themeFields && this.chartsSetting) {
164 thematicFeature = new FeatureTheme[this.chartsType](feature, this, this.themeFields, this.chartsSetting);
165 }
166 // thematicFeature 是否创建成功
167 if (!thematicFeature) {
168 return false;
169 }
170 // 对专题要素执行图形装载
171 thematicFeature.assembleShapes();
172 return thematicFeature;
173 }
174
175 /**
176 * @function Graph.prototype.drawCharts

Callers 1

Calls 1

assembleShapesMethod · 0.45

Tested by

no test coverage detected