supportsTile method

  1. @override
Future<bool> supportsTile(
  1. Tile tile,
  2. Projection projection
)
override

Returns true if MapDatabase contains the given tile.

@param tile tile to be rendered. @return true if tile is part of database.

Implementation

@override
Future<bool> supportsTile(Tile tile, Projection projection) async {
  for (Datastore mdb in mapDatabases) {
    if ((await mdb.supportsTile(tile, projection))) {
      return true;
    }
  }
  return false;
}