update method

void update(
  1. Key key,
  2. T item,
  3. LatLngBounds oldBounds,
  4. LatLngBounds newBounds,
)

Optimised update when old bounds are known (avoids internal lookup).

Implementation

void update(Key key, T item, LatLngBounds oldBounds, LatLngBounds newBounds) {
  _removeInternal(key, oldBounds);
  _addInternal(key, item, newBounds);
}