Updated WmsImageLayer

This commit is contained in:
ClemensFischer 2025-12-28 10:16:59 +01:00
parent 07a189a00a
commit bd1b82d36c
2 changed files with 5 additions and 19 deletions

View file

@ -83,7 +83,7 @@ namespace MapControl
}
catch (Exception ex)
{
Logger?.LogError(ex, "Failed loading {uri}", uri);
Logger?.LogError(ex, "Failed loading image from {uri}", uri);
}
progress?.Report(1d);
@ -107,11 +107,11 @@ namespace MapControl
}
catch (TaskCanceledException)
{
Logger?.LogWarning("Timeout while loading {uri}", uri);
Logger?.LogWarning("Timeout from {uri}", uri);
}
catch (Exception ex)
{
Logger?.LogError(ex, "Failed loading {uri}", uri);
Logger?.LogError(ex, "{uri}", uri);
}
return null;

View file

@ -196,14 +196,7 @@ namespace MapControl
{
var uri = GetMapRequestUri(bbox.Value);
try
{
image = await ImageLoader.LoadImageAsync(uri, progress);
}
catch (Exception ex)
{
Logger?.LogError(ex, "ImageLoader.LoadImageAsync");
}
image = await ImageLoader.LoadImageAsync(uri, progress);
}
}
else
@ -231,14 +224,7 @@ namespace MapControl
var uri1 = GetMapRequestUri(bbox1.Value);
var uri2 = GetMapRequestUri(bbox2.Value);
try
{
image = await ImageLoader.LoadMergedImageAsync(uri1, uri2, progress);
}
catch (Exception ex)
{
Logger?.LogError(ex, "ImageLoader.LoadMergedImageAsync");
}
image = await ImageLoader.LoadMergedImageAsync(uri1, uri2, progress);
}
}
}