getImage method
Retrieve a tile as an image, based on its coordinates and the TileLayer
Usually redirects to a custom ImageProvider, with one input depending on getTileUrl.
For many implementations, this is the only method that will need implementing.
Does not support cancelling loading tiles, unlike
getImageWithCancelLoadingSupport. For this method to be called instead of
that, supportsCancelLoading must be false
(default).
Implementation
@override
ImageProvider getImage(TileCoordinates coordinates, TileLayer options) {
return MapImageProvider(
provider: MapTileProvider(),
options: options,
coords: coordinates,
);
}