AnsweredAssumed Answered

How to display a map using WMS ?

Question asked by Chipniz on Mar 9, 2016
Latest reply on Mar 9, 2016 by processing...



I am new in this forum. Thank you for your welcome. I am an Oracle DBA, SQL developer, developping Web applications using Oracle Application Express, and oriented object language. I don't know javascript; We are running Arcgis Server 11. The Arcgis administrator gave me an URL of a WMS service. How can I display this map using this WMS resource ? I have tried with an example of the samples but it display the map of the US, instead of the map of our river.

The example I took whas this one : Map with WMS

I modified the index.html file changing the WMS service

var wmsLayer = new WMSLayer('', {
        resourceInfo: resourceInfo,
        visibleLayers: ['1', '2']

By this one :

var wmsLayer = new WMSLayer('http://serv-sig8:6080/arcgis/services/carte_arcgisserver/MapServer/WMSServer?', {
        resourceInfo: resourceInfo,
        visibleLayers: ['1', '2']


This displays the US map instead of the map of river that is supposed to be shown by the WMS service I modified.

How to display the map of the WMS service ?


Best regards.

var wmsLayer = new WMSLayer

        resoureInfo: resourceInfo,

        visibleLayers: ['1', '2']