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

Method _uncacheFeatureIDs

modules/services/VectorTileService.js:522–531  ·  view source on GitHub ↗

* _uncacheFeatureIDs * @param {Object} cache * @param {Set} featureIDs - Set(featureIDs)

(cache, featureIDs)

Source from the content-addressed store, hash-verified

520 * @param {Set} featureIDs - Set(featureIDs)
521 */
522 _uncacheFeatureIDs(cache, featureIDs) {
523 for (const featureID of featureIDs) {
524 const box = cache.boxes.get(featureID);
525 if (box) {
526 cache.boxes.delete(featureID); // uncache box
527 cache.rbush.remove(box);
528 }
529 cache.features.delete(featureID); // uncache feature
530 }
531 }
532
533
534 /**

Callers 2

_mergePolygonsMethod · 0.95
_mergeLineStringsMethod · 0.95

Calls 2

getMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected