WMS Layer doesn't get version option

3190
0
04-23-2015 09:09 AM
GianniContino
New Contributor III

I'm using a WMSLayer Class (arcgis js api 3.13) to connect to a WMS version 1.1.1. service.

My settings are as follows:

var wmsLayer = new WMSLayer("<http://host>/WMS?Request=GetCapabilities",

     {

        resourceInfo: myResourceInfo,

        version: '1.1.1',

        visibleLayers: ['layer1', 'layer2']

     });

map.addLayers([wmsLayer]);

Why does my browser send this request?

http://<host>/WMS?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&STYLES=&VERSION=1.3.0...

How do I have to set VERSION parameter in WMSLayer?

0 Kudos
0 Replies