mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 22:18:56 +00:00
WmtsTileMatrixSet
This commit is contained in:
parent
e14c9e4102
commit
65c20c76b2
5 changed files with 67 additions and 30 deletions
|
|
@ -28,9 +28,9 @@ namespace MapControl
|
|||
|
||||
PixelBuffer = new byte[4 * width * height];
|
||||
bitmap.CopyPixels(PixelBuffer, 4 * width, 0);
|
||||
|
||||
Completed?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
|
||||
Completed?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -172,14 +172,17 @@ namespace MapControl
|
|||
|
||||
tile.Completed -= OnTileCompleted;
|
||||
|
||||
Dispatcher.Invoke(() =>
|
||||
if (tile.PixelBuffer != null)
|
||||
{
|
||||
if (tile.X >= TileMatrix.XMin && tile.X <= TileMatrix.XMax &&
|
||||
tile.Y >= TileMatrix.YMin && tile.Y <= TileMatrix.YMax)
|
||||
Dispatcher.Invoke(() =>
|
||||
{
|
||||
CopyTile(tile);
|
||||
}
|
||||
});
|
||||
if (tile.X >= TileMatrix.XMin && tile.X <= TileMatrix.XMax &&
|
||||
tile.Y >= TileMatrix.YMin && tile.Y <= TileMatrix.YMax)
|
||||
{
|
||||
CopyTile(tile);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue