2017-06-25 23:05:48 +02:00
|
|
|
|
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
|
|
|
|
|
// © 2017 Clemens Fischer
|
2016-04-19 19:36:03 +02:00
|
|
|
|
// Licensed under the Microsoft Public License (Ms-PL)
|
|
|
|
|
|
|
2017-06-25 23:05:48 +02:00
|
|
|
|
using System;
|
2016-04-19 19:36:03 +02:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using System.Xml;
|
|
|
|
|
|
|
|
|
|
|
|
namespace MapControl
|
|
|
|
|
|
{
|
|
|
|
|
|
public partial class WmsImageLayer
|
|
|
|
|
|
{
|
2017-06-25 23:05:48 +02:00
|
|
|
|
private static async Task<XmlDocument> LoadDocument(Uri requestUri)
|
2016-04-19 19:36:03 +02:00
|
|
|
|
{
|
|
|
|
|
|
var document = new XmlDocument();
|
2017-06-25 23:05:48 +02:00
|
|
|
|
await Task.Run(() => document.Load(requestUri.ToString()));
|
2016-04-19 19:36:03 +02:00
|
|
|
|
return document;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|