AnsweredAssumed Answered

WMS-layer problem

Question asked by tugiss on Feb 13, 2015
Latest reply on Feb 17, 2015 by akajanus-esristaff

Hi,

 

I would like to show a layer from a WMS-service on my map but somehow it draws nothing. The WmsLayer.ServiceInfo is loaded correctly after initialization. I try to add it to my map with the following code where "vaki2011_1km" is the layer name from service ( http://geo.stat.fi/geoserver/vaestoruutu/wms?service=wms&%20version=1.3.0&request=GetCapabilities ).

 

            var wmslayer = new WmsLayer(new Uri("http://geo.stat.fi/geoserver/vaestoruutu/wms?"))
            {
                DisplayName = "Väestöruutuaineisto",
                IsVisible = true,
              
            };
            
            wmslayer.Layers = new[] {"vaki2011_1km"};
            wmslayer.ImageFormat = "image/png";
            await wmslayer.InitializeAsync();
           
            Map.Layers.Insert(0, wmslayer);

 

My map spatial reference is EPSG:3067 and the WMS Service supports it. What can possibly go wrong here? I tried to publish a simple own WMS service on ArcGIS server and added it to my map same way and it worked fine.

Outcomes