mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 22:46:58 +00:00
Update Tile class
This commit is contained in:
parent
6903c4a436
commit
7fa2e37266
7 changed files with 17 additions and 10 deletions
|
|
@ -17,11 +17,11 @@ namespace MapControl
|
|||
{
|
||||
public partial class Tile
|
||||
{
|
||||
public void SetImage(ImageSource image, bool fadeIn = true)
|
||||
public void SetImageSource(ImageSource image)
|
||||
{
|
||||
Pending = false;
|
||||
|
||||
if (image != null && fadeIn && MapBase.ImageFadeDuration > TimeSpan.Zero)
|
||||
if (image != null && MapBase.ImageFadeDuration > TimeSpan.Zero)
|
||||
{
|
||||
if (image is BitmapImage bitmap && bitmap.UriSource != null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ namespace MapControl
|
|||
{
|
||||
try
|
||||
{
|
||||
tile.SetImage(await loadImageFunc());
|
||||
tile.SetImageSource(await loadImageFunc());
|
||||
tcs.TrySetResult();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue