Update Tile class

This commit is contained in:
ClemensFischer 2022-11-17 23:11:40 +01:00
parent 6903c4a436
commit 7fa2e37266
7 changed files with 17 additions and 10 deletions

View file

@ -235,11 +235,11 @@ namespace MapControl
tile = new Tile(z, x, y);
var equivalentTile = Tiles.FirstOrDefault(
t => t.ZoomLevel == z && t.XIndex == tile.XIndex && t.Y == y && !t.Pending);
t => !t.Pending && t.ZoomLevel == z && t.Y == y && t.XIndex == tile.XIndex);
if (equivalentTile != null)
{
tile.SetImage(equivalentTile.Image.Source, false); // no fade-in animation
tile.SetImageSource(equivalentTile);
}
}