<?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: Unable to recreate a map in javascript using jsapi for some tiled map services. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-recreate-a-map-in-javascript-using-jsapi/m-p/21122#M1838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The attached file ran successfully in 1st go. The issue comes up when you click on reload button. So just want to confirm if you clicked reload button?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Aug 2014 06:21:14 GMT</pubDate>
    <dc:creator>MandeepChauhan</dc:creator>
    <dc:date>2014-08-11T06:21:14Z</dc:date>
    <item>
      <title>Unable to recreate a map in javascript using jsapi for some tiled map services.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-recreate-a-map-in-javascript-using-jsapi/m-p/21120#M1836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a custom app that read layer url and its associated properties from a table that exist in my own database and render a map for that layer on a html page. I have some interface that I can use to change some properties of the map and save it back to my own database. In my logic when I save map properties I need to destroy the map and create it again and this is throwing error for me.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c41a16; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;&lt;SPAN&gt;"Error: Unable to load &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://gisservices.scc.qld.gov.au/arcgis/rest/services/ImageryBaseMapsEarthCover/StreetMap_SCRC/MapServer?f=json" rel="nofollow" target="_blank"&gt;http://gisservices.scc.qld.gov.au/arcgis/rest/services/ImageryBaseMapsEarthCover/StreetMap_SCRC/MapServer?f=json&lt;/A&gt;&lt;SPAN&gt; status: 0↵ at Error (native)↵ at new m (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://js.arcgis.com/3.10/init.js:223:16)↵" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.10/init.js:223:16)↵&lt;/A&gt;&lt;SPAN&gt; at XMLHttpRequest.g (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://js.arcgis.com/3.10/init.js:161:17" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.10/init.js:161:17&lt;/A&gt;&lt;SPAN&gt;)"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have replicated the issue in ArcGIS API for JavaScript Sandbox and the code is attached. The map loaded int first go. When reload button (on top left cornor) is clicked I got above error.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a requirement of my custom application I need to recreate the map and unable to use some map services e.g.: &lt;SPAN style="color: #c41a16; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;&lt;A class="jive-link-external-small" href="http://gisservices.scc.qld.gov.au/arcgis/rest/services/ImageryBaseMapsEarthCover/StreetMap_SCRC/MapServer" rel="nofollow" target="_blank"&gt;http://gisservices.scc.qld.gov.au/arcgis/rest/services/ImageryBaseMapsEarthCover/StreetMap_SCRC/MapServer&lt;/A&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 05:17:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-recreate-a-map-in-javascript-using-jsapi/m-p/21120#M1836</guid>
      <dc:creator>MandeepChauhan</dc:creator>
      <dc:date>2014-08-07T05:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to recreate a map in javascript using jsapi for some tiled map services.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-recreate-a-map-in-javascript-using-jsapi/m-p/21121#M1837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run this in IE 11 it gives the error you mention. The IE console log also shows some more information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SEC7128: Multiple Access-Control-Allow-Origin headers are not allowed for CORS response.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I look this error up the following MSDN site has more information:&lt;/P&gt;&lt;P&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/ie/dn423949(v=vs.85).aspx" title="http://msdn.microsoft.com/en-us/library/ie/dn423949(v=vs.85).aspx"&gt;Console error messages in F12 developer tools (Windows)&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="padding-bottom: 20px; padding-top: 20px; color: #454545; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #dbdbdb; margin: 10px; padding: 10px 8px; color: #2a2a2a;"&gt;&lt;P style="color: #454545;"&gt;SEC7129&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #dbdbdb; margin: 10px; padding: 10px 8px; color: #2a2a2a;"&gt;&lt;P style="color: #454545;"&gt;"Multiple Access-Control-Allow-Credentials headers are not allowed for CORS response. "&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #dbdbdb; margin: 10px; padding: 10px 8px; color: #2a2a2a;"&gt;&lt;P style="color: #454545;"&gt;The response header contained multiple Access-Control-Allow-Credentials headers.&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #dbdbdb; margin: 10px; padding: 10px 8px; color: #2a2a2a;"&gt;&lt;P style="color: #454545;"&gt;This is a server-side error. The server should return a single Access-Control-Allow-Credentials header. Report this error to the developer in charge of the &lt;SPAN style="color: #454545; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;server-side resource.&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This appears to be an issue with your server setup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly, running your file locally in Chrome gives no errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Owen&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.spatialxp.com.au/"&gt;Spatial XP&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 06:54:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-recreate-a-map-in-javascript-using-jsapi/m-p/21121#M1837</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2014-08-07T06:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to recreate a map in javascript using jsapi for some tiled map services.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-recreate-a-map-in-javascript-using-jsapi/m-p/21122#M1838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The attached file ran successfully in 1st go. The issue comes up when you click on reload button. So just want to confirm if you clicked reload button?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 06:21:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-recreate-a-map-in-javascript-using-jsapi/m-p/21122#M1838</guid>
      <dc:creator>MandeepChauhan</dc:creator>
      <dc:date>2014-08-11T06:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to recreate a map in javascript using jsapi for some tiled map services.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-recreate-a-map-in-javascript-using-jsapi/m-p/21123#M1839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - the SEC7128 error only happens after clicking on the reload button. &lt;SPAN style="line-height: 1.5;"&gt;The first page load shows the map.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 06:43:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-recreate-a-map-in-javascript-using-jsapi/m-p/21123#M1839</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2014-08-11T06:43:19Z</dc:date>
    </item>
  </channel>
</rss>

