ThinkGeo.com    |     Documentation    |     Premium Support

WmsAsyncLayer v14.2

Hello,

after upgrading from version 13.3 to version 14.2 i have noticed some issues. The first one reagrds the WmsAsycLayer. One of the most popular Wms-Sites in germany is https://sgx.geodatenzentrum.de/wms_topplus_open. ThinkGeo generates in version 13.3 Get-Request with ‘CRS=EPSG:25832’. Now the request is ‘CRS=25832’ and the server sends an error.
So my question: Must I change the request in ‘OnSendingHttpRequestMessage’ (I try that and is works fine) or is that an issue?

Regards Torsten

hi @Torsten,

Here’s the code snippet, I also uploaded a working sampleWmsIssue.zip (3.2 KB), feel free to give it a try.

WmsAsyncLayer layer = new WmsAsyncLayer(new Uri("https://sgx.geodatenzentrum.de/wms_topplus_open"), null, "EPSG:25832");
await layer.OpenAsync();
var layers = layer.GetServerLayers();
layer.ActiveLayerNames.Add(layers[0].Name);
layer.ActiveStyleNames.Add("");

LayerOverlay overlay = new LayerOverlay();
overlay.Layers.Add(layer);
map.Overlays.Add(overlay);

map.CurrentExtent = layer.GetBoundingBox(); ;
await map.RefreshAsync();

Regards,
Leo