<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to display a map using WMS ? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-a-map-using-wms/m-p/371965#M34486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not visit your url, but there are differences in the two code snippets.&lt;/P&gt;&lt;P&gt;Take the '?' off from the end of your url. I think that might be making it cause problems.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2016 16:43:43 GMT</pubDate>
    <dc:creator>TyroneBiggums</dc:creator>
    <dc:date>2016-03-09T16:43:43Z</dc:date>
    <item>
      <title>How to display a map using WMS ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-a-map-using-wms/m-p/371964#M34485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;The example I took whas this one : &lt;A href="http://developers.arcgis.com/javascript/samples/layers_wmsresourceinfo/" title="http://developers.arcgis.com/javascript/samples/layers_wmsresourceinfo/" rel="nofollow noopener noreferrer" target="_blank"&gt;Map with WMS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I modified the index.html file changing the WMS service&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN&gt;var wmsLayer = new WMSLayer('&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fsampleserver1.arcgisonline.com%2FArcGIS%2Fservices%2FSpecialty%2FESRI_StatesCitiesRivers_USA%2FMapServer%2FWMSServer" target="_blank"&gt;https://sampleserver1.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/WMSServer&lt;/A&gt;&lt;SPAN&gt;', {&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resourceInfo: resourceInfo,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; visibleLayers: ['1', '2']&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;By this one :&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN&gt;var wmsLayer = new WMSLayer('&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fserv-sig8%3A6080%2Farcgis%2Fservices%2Fcarte_arcgisserver%2FMapServer%2FWMSServer" target="_blank"&gt;http://serv-sig8:6080/arcgis/services/carte_arcgisserver/MapServer/WMSServer&lt;/A&gt;&lt;SPAN&gt;?', {&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resourceInfo: resourceInfo,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; visibleLayers: ['1', '2']&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;This displays the US map instead of the map of river that is supposed to be shown by the WMS service I modified.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;How to display the map of the WMS service ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;Best regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-position: repeat;"&gt;&lt;SPAN&gt;var wmsLayer = new WMSLayer&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-position: repeat;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resoureInfo: resourceInfo,&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-position: repeat;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; visibleLayers: ['1', '2']&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:13:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-a-map-using-wms/m-p/371964#M34485</guid>
      <dc:creator>C_Chipniz</dc:creator>
      <dc:date>2021-12-11T17:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a map using WMS ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-a-map-using-wms/m-p/371965#M34486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not visit your url, but there are differences in the two code snippets.&lt;/P&gt;&lt;P&gt;Take the '?' off from the end of your url. I think that might be making it cause problems.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 16:43:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-a-map-using-wms/m-p/371965#M34486</guid>
      <dc:creator>TyroneBiggums</dc:creator>
      <dc:date>2016-03-09T16:43:43Z</dc:date>
    </item>
  </channel>
</rss>

