imageryProvider: new Cesium.ArcGisMapServerImageryProvider({url: "//services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"})
This was working 6 months ago but suddenly not working. I’m trying to figure out if it may be a change in the map server or provider service? Or is this something on my end?
Ok, thanks. I see it’s working from the link you provided. I’ll have to do some investigating on my end to figure out what is going on.
EDIT: I’ve tried looking into my .js and html code files, file permissions, server connection status, port number availability. Not finding anything wrong.
I can’t say without individually check your code. There can be multiple reasons including firewall blockage. You should check in the “Network” section of your chrome browser’s developer tools. You can check if request is getting response or not. Let us know here if you are catching any error in the console also.
In myCodeFile.js is where I call my Cesium API . . .
var mapType = "//services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer";
var viewer = new Cesium.Viewer('cesiumContainer',
{
requestRenderMode : true,
maximumRenderTimeChange : Infinity,
showTimeOptions:false,
targetFrameRate: 30,
imageryProvider: new Cesium.ArcGisMapServerImageryProvider({url: mapType}),
terrainProvider: new Cesium.VRTheWorldTerrainProvider({
url: "http://www.vr-theworld.com/vr-theworld/tiles1.0.0/73/"
}),
baseLayerPicker:false,
animation: false
}
);
etc . . .
This has been my setup for the past several years and has worked fine. Now, it’s been about 6 months since I’ve done any work with Cesium and I’ve come back to use it and I’m getting the error above.
animation: false,
imageryProviderViewModels: [
new Cesium.ProviderViewModel({
name: "ESRI World Street Map",
iconUrl: Cesium.buildModuleUrl("Widgets/Images/ImageryProviders/esriWorldStreetMap.png"),
tooltip:"This worldwide street map presents highway-level data for the world.",
creationFunction: function () {
return new Cesium.ArcGisMapServerImageryProvider({ url: streetmapType});
},
}),
new Cesium.ProviderViewModel({
name: "ESRI World Satellite Map",
iconUrl: Cesium.buildModuleUrl("Widgets/Images/ImageryProviders/esriWorldImagery.png"),
tooltip:"This worldwide satellite map.",
creationFunction: function () {
return new Cesium.ArcGisMapServerImageryProvider({ url: satellitemapType});
},
})
]