getImage method

  1. @override
ImageProvider<Object> getImage(
  1. TileCoordinates coordinates,
  2. TileLayer options
)
override

Retrieve a tile as an image, based on it's coordinates and the current TileLayerOptions

Implementation

@override
ImageProvider getImage(TileCoordinates coordinates, TileLayer options) =>
    HttpOverrides.runZoned<FMNetworkImageProvider>(
      () => FMNetworkImageProvider(
        getTileUrl(coordinates, options),
        fallbackUrl: getTileFallbackUrl(coordinates, options),
        headers: headers,
        httpClient: httpClient,
      ),
      createHttpClient: (c) => _FlutterMapHTTPOverrides().createHttpClient(c),
    );