mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Rework Map/WmsImageLayer
This commit is contained in:
parent
c3e1ffd685
commit
9db1987ee5
7 changed files with 265 additions and 103 deletions
|
|
@ -33,6 +33,8 @@ namespace MapControl
|
|||
{
|
||||
ImageSource image = null;
|
||||
|
||||
progress?.Report(0d);
|
||||
|
||||
try
|
||||
{
|
||||
if (!uri.IsAbsoluteUri || uri.IsFile)
|
||||
|
|
@ -58,6 +60,8 @@ namespace MapControl
|
|||
Debug.WriteLine($"ImageLoader: {uri}: {ex.Message}");
|
||||
}
|
||||
|
||||
progress?.Report(1d);
|
||||
|
||||
return image;
|
||||
}
|
||||
|
||||
|
|
@ -77,8 +81,6 @@ namespace MapControl
|
|||
{
|
||||
HttpResponse response = null;
|
||||
|
||||
progress?.Report(0d);
|
||||
|
||||
try
|
||||
{
|
||||
using (var responseMessage = await HttpClient.GetAsync(uri, HttpCompletionOption.ResponseHeadersRead).ConfigureAwait(false))
|
||||
|
|
@ -108,8 +110,6 @@ namespace MapControl
|
|||
Debug.WriteLine($"ImageLoader: {uri}: {ex.Message}");
|
||||
}
|
||||
|
||||
progress?.Report(1d);
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue