clearTileCache method

Future<void> clearTileCache(
  1. MFTileOverlayId tileOverlayId
)

Clears the tile cache so that all tiles will be requested again from the TileProvider.

The current tiles from this tile overlay will also be cleared from the map after calling this method. The API maintains a small in-memory cache of tiles. If you want to cache tiles for longer, you should implement an on-disk cache.

Implementation

Future<void> clearTileCache(MFTileOverlayId tileOverlayId) async {
  return _channel.invokeMethod<void>('tileOverlays#clearTileCache',
      <String, Object>{'tileOverlayId': tileOverlayId.value});
}