SupportedCrsIds

This commit is contained in:
ClemensFischer 2025-09-19 20:22:10 +02:00
parent 7da0f7f9af
commit 5bba4d6a1b
6 changed files with 11 additions and 11 deletions

View file

@ -81,7 +81,7 @@ namespace MapControl
/// <summary>
/// Gets a collection of all CRSs supported by a WMS.
/// </summary>
public override IReadOnlyCollection<string> SupportedMapProjections => mapProjections;
public override IReadOnlyCollection<string> SupportedCrsIds => supportedCrsIds;
/// <summary>
/// Loads an XElement from the URL returned by GetCapabilitiesRequestUri().
@ -342,7 +342,7 @@ namespace MapControl
return uri.Replace(" ", "%20");
}
private List<string> mapProjections;
private List<string> supportedCrsIds;
private async void OnLoaded(object sender, RoutedEventArgs e)
{
@ -357,7 +357,7 @@ namespace MapControl
var ns = capabilities.Name.Namespace;
var capability = capabilities.Element(ns + "Capability");
mapProjections = capability
supportedCrsIds = capability
.Element(ns + "Layer")
.Descendants(ns + "CRS")
.Select(e => e.Value)