<?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 WMS Layer not loading under Google Chrome in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-layer-not-loading-under-google-chrome/m-p/21587#M1866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know why, in my web app with the JS API 3.9, all my WMS Layer are not loading only in Google Chrome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Under I.E. 11 and Firefox 28, all my WMS Layer are loading.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;layer = new esri.layers.WMSLayer(http://www.cptaq.gouv.qc.ca/mapserver/cgi-bin/cptaq/?SERVICE=WMS&amp;amp;VERSION=1.1.1&amp;amp;REQUEST=GetMap, {
 format: "png",
 visibleLayers: [0,1,2,3,4,5],
 id:"cptaq"
});&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How could I solve this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Apr 2014 15:15:59 GMT</pubDate>
    <dc:creator>YvanBérard</dc:creator>
    <dc:date>2014-04-25T15:15:59Z</dc:date>
    <item>
      <title>WMS Layer not loading under Google Chrome</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-layer-not-loading-under-google-chrome/m-p/21587#M1866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know why, in my web app with the JS API 3.9, all my WMS Layer are not loading only in Google Chrome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Under I.E. 11 and Firefox 28, all my WMS Layer are loading.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;layer = new esri.layers.WMSLayer(http://www.cptaq.gouv.qc.ca/mapserver/cgi-bin/cptaq/?SERVICE=WMS&amp;amp;VERSION=1.1.1&amp;amp;REQUEST=GetMap, {
 format: "png",
 visibleLayers: [0,1,2,3,4,5],
 id:"cptaq"
});&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How could I solve this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 15:15:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-layer-not-loading-under-google-chrome/m-p/21587#M1866</guid>
      <dc:creator>YvanBérard</dc:creator>
      <dc:date>2014-04-25T15:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: WMS Layer not loading under Google Chrome</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-layer-not-loading-under-google-chrome/m-p/21588#M1867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See this thread:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/98149-Chrome-WMS-and-content-type-application-vnd.ogc.wms_xml-fails"&gt;http://forums.arcgis.com/threads/98149-Chrome-WMS-and-content-type-application-vnd.ogc.wms_xml-fails&lt;/A&gt;&lt;SPAN&gt;..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, it seems like Chrome isn't firing an event when the content type of the response to the GetCapabilities request is set as 'application/vnd.ogc.wms_xml'.&amp;nbsp; If you're using a proxy, you can overwrite this header with 'text/xml', and it'll get Chrome to behave as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I posted a sample in that thread that shows the change I made to Esri's resource proxy to fix this in my case.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 19:59:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wms-layer-not-loading-under-google-chrome/m-p/21588#M1867</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-05-29T19:59:04Z</dc:date>
    </item>
  </channel>
</rss>

