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