* @function Graph.prototype.addFeatures * @description 向专题图图层中添加数据。 * @param {(ServerFeature|ThemeFeature)} features - 待添加的要素。
(features)
| 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 |
no test coverage detected