Difficulty writing first application

Hello again. I’m trying to write my own helloworld type application and view it on my server (created by following the instructions provided on Cesium Up and Running). When I save the code provided in the section…

@import url(../templates/bucket.css);
Hello World! @import url(../Build/Cesium/Widgets/CesiumWidget/CesiumWidget.css); body { padding: 0; margin: 0; overflow: hidden; }

… as an html file and open it in chrome on my localhost server, nothing appears. Is the code wrong on the site or am I doing something incorrectly? Thanks, -Adam

Hi Adam,

Have you tried to view HelloWorld.html provided in the Cesium download through a local webserver? In either case, when you bring up the browser’s console window, what errors do you see? I suspect a path is wrong.

Does the main demo on cesium.agi.com run?



Also I’ll mention that Sandcastle demos & save files contain relative paths, so they need to be in the Sandcastle/gallery folder or an adjacent folder of the same depth.

The code you pasted above looks mal-formed, with a <!DOCTYPE> tag in the middle of it. Try saving your example with the “Save As” button in Sandcastle, into the Gallery folder, and it should work better.


Yes, Using the HelloWorld.html provided in the Cesium download works fine on my local webserver. I don’t see any errors, but my browser is completely white.

I removed the first 4 lines of code, and now the code is exactly the same as the code on the Cesium Up and Running page and I am still encountering the same problem. The code seems to work in Sandcastle though.

In Google Chrome, press F12 to bring up the dev tools, and switch to the “Console” tab. Then re-load the page. If you’re seeing just a white page, there should be errors in the console.