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)"
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.