()
| 179 | } |
| 180 | |
| 181 | async _updateFeatures() { |
| 182 | const bounds = this.map.getBounds().toArray(); |
| 183 | const extentToLoad = [bounds[0][0], bounds[0][1], bounds[1][0], bounds[1][1]]; |
| 184 | const alreadyLoaded = this.renderer._forEachInExtent(extentToLoad, (object) => { |
| 185 | return this.renderer._containsExtent(object.extent, extentToLoad); |
| 186 | }); |
| 187 | if (!alreadyLoaded) { |
| 188 | let iter = await this.renderer._loadData(extentToLoad); |
| 189 | const features = await this.renderer.iterateFeatures(iter); |
| 190 | this.map.getSource(this._sourceId).setData(features); |
| 191 | } |
| 192 | } |
| 193 | } |
nothing calls this directly
no test coverage detected