mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Updated DrawingTile
This commit is contained in:
parent
21d7938d33
commit
f382c59d19
2 changed files with 11 additions and 19 deletions
|
|
@ -88,16 +88,20 @@ namespace MapControl
|
|||
{
|
||||
tile = new DrawingTile(TileMatrix.ZoomLevel, x, y, WmtsTileMatrix.MatrixWidth);
|
||||
|
||||
var equivalentTile = Tiles.FirstOrDefault(t => t.ImageSource != null && t.Column == tile.Column && t.Row == tile.Row);
|
||||
var equivalentTile = Tiles.FirstOrDefault(t => t.ImageDrawing.ImageSource != null && t.Column == tile.Column && t.Row == tile.Row);
|
||||
|
||||
if (equivalentTile != null)
|
||||
{
|
||||
tile.IsPending = false;
|
||||
tile.ImageSource = equivalentTile.ImageSource; // no Opacity animation
|
||||
tile.ImageDrawing.ImageSource = equivalentTile.ImageDrawing.ImageSource; // no Opacity animation
|
||||
}
|
||||
}
|
||||
|
||||
tile.SetRect(TileMatrix.XMin, TileMatrix.YMin, WmtsTileMatrix.TileWidth, WmtsTileMatrix.TileHeight);
|
||||
tile.ImageDrawing.Rect = new Rect(
|
||||
WmtsTileMatrix.TileWidth * (x - TileMatrix.XMin),
|
||||
WmtsTileMatrix.TileHeight * (y - TileMatrix.YMin),
|
||||
WmtsTileMatrix.TileWidth,
|
||||
WmtsTileMatrix.TileHeight);
|
||||
|
||||
tiles.Add(tile);
|
||||
drawings.Add(tile.Drawing);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue