supportsTile method

  1. @override
Future<bool> supportsTile(
  1. Tile tile
)

Checks if this map file contains data for the given tile.

This is determined by checking if the tile's zoom level is within the map's zoom range and if the tile's bounding box intersects with the map's bounding box. Requires _lateOpen to have been completed.

Implementation

@override
Future<bool> supportsTile(Tile tile) async {
  await _lateOpen();
  if (!zoomlevelRange.matches(tile.zoomLevel)) return false;
  return tile.getBoundingBox().intersects(getMapHeaderInfo().boundingBox);
}