mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-13 20:20:17 +01:00
Updated WmsImageLayer
This commit is contained in:
parent
07a189a00a
commit
bd1b82d36c
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue