getImage method

  1. @override
ImageProvider<Object> getImage(
  1. String? templateUrl,
  2. Bounds? globalTileRange,
  3. Coordinate coordinate,
  4. TileLayerOptions? options,
)
override

Implementation

@override
ImageProvider getImage(String? templateUrl, Bounds? globalTileRange,
    Coordinate coordinate, TileLayerOptions? options) {
  return CachedNetworkImageProvider(
    getTileUrl(templateUrl, globalTileRange, coordinate, options),
    //cache: true,
    //retries: 4,
    //timeRetry: Duration(milliseconds: 200),
  );
}