Improved TileImageLoader

This commit is contained in:
ClemensFischer 2023-08-12 17:36:37 +02:00
parent d9c5455a83
commit c6f7b2d665
9 changed files with 70 additions and 87 deletions

View file

@ -45,11 +45,11 @@ namespace MapControl
IsHitTestVisible = false // avoid touch capture issues
};
public bool IsLoaded { get; set; }
public bool IsPending { get; set; } = true;
public void SetImageSource(ImageSource image, bool animateOpacity = true)
{
IsLoaded = true;
IsPending = false;
Image.Source = image;
if (image != null && animateOpacity && MapBase.ImageFadeDuration > TimeSpan.Zero)