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.
"Error: Unable to load http://gisservices.scc.qld.gov.au/arcgis/rest/services/ImageryBaseMapsEarthCover/StreetMap_SCRC/MapServer?f=json status: 0↵ at Error (native)↵ at new m (http://js.arcgis.com/3.10/init.js:223:16)↵ at XMLHttpRequest.g (http://js.arcgis.com/3.10/init.js:161:17)"
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.
As a requirement of my custom application I need to recreate the map and unable to use some map services e.g.: http://gisservices.scc.qld.gov.au/arcgis/rest/services/ImageryBaseMapsEarthCover/StreetMap_SCRC/MapServer.