MCPcopy Create free account
hub / github.com/facebook/Rapid / _rebuildIndex

Method _rebuildIndex

modules/core/LocationSystem.js:228–231  ·  view source on GitHub ↗

* _rebuildIndex * Rebuilds the whichPolygon index with whatever features have been resolved into GeoJSON.

()

Source from the content-addressed store, hash-verified

226 * Rebuilds the whichPolygon index with whatever features have been resolved into GeoJSON.
227 */
228 _rebuildIndex() {
229 this._wp = whichPolygon({ features: [...this._resolved.values()] });
230 this.emit('locationchange');
231 }
232
233
234 /**

Callers 2

constructorMethod · 0.95
mergeLocationSetsMethod · 0.95

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected