Globe does not appear

77 views
Skip to first unread message

tdyo...@gmail.com

unread,
Feb 12, 2019, 12:12:00 PM2/12/19
to cesium-dev
1. A concise explanation of the problem you're experiencing.

Upon running the application the globe does not appear. I have tried editing the code below and I still just get a black screen.


2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.

<div id="cesiumContainer"></div>

<script>

var viewer = new Cesium.Viewer('cesiumContainer', {
imageryProvider: Cesium.createTileMapServiceImageryProvider({
url: Cesium.buildModuleUrl('Cesium/Assets/Textures/NaturalEarthII')
}),
baseLayerPicker: false,
geocoder:false
});
viewer.extend(Cesium.viewerDragDropMixin);
viewer.dropError.addEventListener(function (viewerArg, source, error) {
window.alert('Error processing ' + source + ':' + error);
});

</script>

4. The Cesium version you're using, your operating system and browser.

I am using the most up to date google chrome browser.

Omar Shehata

unread,
Feb 13, 2019, 3:30:51 PM2/13/19
to cesium-dev
If you're getting a completely black screen (not even a blue globe) then you might not have CesiumJS setup correctly. Have you checked the browser console to see if there are any errors?

This setup guide here might be helpful:

Reply all
Reply to author
Forward
0 new messages