clearTileCache method
void
clearTileCache(
- TileOverlayId tileOverlayId
Invalidates the tile overlay associated with the given TileOverlayId
.
Implementation
void clearTileCache(TileOverlayId tileOverlayId) {
final TileOverlayController? controller = _tileOverlays[tileOverlayId];
if (controller != null && controller.tileOverlay.visible) {
final int i = _visibleTileOverlays.indexOf(controller);
// This causes the map to reload the overlay.
googleMap.overlayMapTypes!.setAt(i, controller.gmMapType);
}
}