Commit e1bea665 by Corey Koval

Set default map to ESRI so it doesn't load to a blank screen.

parent 1570b85a
...@@ -53,7 +53,14 @@ ...@@ -53,7 +53,14 @@
// Your access token can be found at: https://cesium.com/ion/tokens. // Your access token can be found at: https://cesium.com/ion/tokens.
Cesium.Ion.defaultAccessToken = '{{access_token}}'; Cesium.Ion.defaultAccessToken = '{{access_token}}';
% end % end
// Set default map to ESRI
const esri = new Cesium.ArcGisMapServerImageryProvider({
url : 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer'
});
var viewer = new Cesium.Viewer('cesiumContainer', { var viewer = new Cesium.Viewer('cesiumContainer', {
imageryProvider: esri,
// imageryProvider : new Cesium.TileMapServiceImageryProvider({ // imageryProvider : new Cesium.TileMapServiceImageryProvider({
// url : Cesium.buildModuleUrl('Assets/Textures/NaturalEarthII') // url : Cesium.buildModuleUrl('Assets/Textures/NaturalEarthII')
// }), // }),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment