getImage method

  1. @override
AssetImage getImage(
  1. Coords<num> coords,
  2. TileLayer options
)
override

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

Implementation

@override
AssetImage getImage(Coords<num> coords, TileLayer options) {
  return AssetImage(
    getTileUrl(coords, options),
    bundle: _FlutterMapAssetBundle(
      fallbackKey: getTileFallbackUrl(coords, options),
    ),
  );
}