Select to view content in your preferred language

WMS Layer Custom Parameter

104
1
a week ago
Labels (1)
Tsub4sa80
Emerging Contributor

Hi to all, in my application I've a wms chart layer connected to local wms chart server.

For my purpose, I need to send a WMS request with custom parameter "VIEWPORT" instead of "BBOX" parameter (both parameters are not allowed by WMS ChartServer).

Can I remove the BBOX parameter, added by default from ARCGIS library, from the WMS request?

Thank you in advance.

 

0 Kudos
1 Reply
MatveiStefarov
Esri Contributor

Hello!  Maps SDK lets you add certain parameters to add _all_ GetMap requests (such as an API key or a style configuration), but there is nothing built-in to customize each individual request.

I was able to WMS ChartServer's demo instance in the Maps SDK without problems, and it seems to handle GetMap requests the ordinary BBOX parameter well:

2024-09-30_165305 WmsSandbox.png

If using the BBOX parameter really doesn't work for your case, then the built-in WMSLayer probably would not work for you.  If you have the ENC exchange sets available, you might be able to use this data directly via EncLayer instead of going through a service.

0 Kudos