AnsweredAssumed Answered

WMSLayer change transparency in ULR request

Question asked by jnitschke on Feb 11, 2015
Latest reply on Feb 12, 2015 by dbroux-esristaff

Hi folks,

 

I'm using ArcGis Runtime for .NET 10.2.04 to display maps from a WMS server. Instead of a colored background our map always has a white background.

 

When I check the URL that the Esri framework produces using Fiddler, the result is as following:

GET /?SERVICE=WMS&REQUEST=GetMap&WIDTH=1920&HEIGHT=1080&FORMAT=image%2Fpng&LAYERS=ENC
&STYLES=&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&VERSION=1.3.0&CRS=EPSG:3857&
BBOX=1114445.90347981,7073109.69570739,1210966.09652019,7127402.30429261 HTTP/1.1

 

As you can see, the request sent to the server has set "TRANSPARENT=TRUE". I need to change this to FALSE otherwise the server returns an image with a transparent background. How do I change this property in XAML or code? Setting the opacy property on the layer doesn't change the URL-request.

 

Kind Regards,

Eugen

Outcomes