Hi,
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('https://sampleserver1.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServ...', { 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']
I did not visit your url, but there are differences in the two code snippets.
Take the '?' off from the end of your url. I think that might be making it cause problems.
And, you have to make sure that you have layers at 1 and 2. Go to that url that you provided, and see if there are 0, 1, 2 (at least), listed.