supportsTile method
Always returns true as memory datastore can generate tiles on demand.
For label display, neighboring tiles may also be considered supported.
Implementation
@override
Future<bool> supportsTile(Tile tile) {
// you may want to show neighbouring tiles too in order to display labels.
return Future.value(true);
// Projection projection = MercatorProjection.fromZoomlevel(tile.zoomLevel);
// for (PointOfInterest poi in pointOfInterests) {
// if (projection.boundingBoxOfTile(tile).containsLatLong(poi.position)) return true;
// }
// for (Way way in ways) {
// for (List<ILatLong> list in way.latLongs) {
// for (ILatLong latLong in list) {
// if (projection.boundingBoxOfTile(tile).containsLatLong(latLong)) return true;
// }
// }
// }
// return false;
}