Use Natural Earth data set in Cesium.

I have saved NaturalEarth data set in my desktop. Then I created a view as below.

But the viewer does not show the map. What I want is to use Natural Earth data set offline. But if I saved the data set in ‘Assets/Textures/NaturalEarthII’ in cesium folder in the project it works fine with the below code.

var viewer = new Cesium.Viewer(‘cesiumContainer’, {

imageryProvider: Cesium.createTileMapServiceImageryProvider({

url: Cesium.buildModuleUrl(‘Assets/Textures/NaturalEarthII’)


baseLayerPicker: false,

geocoder: false


What’s the wrong I have made?

The directory “C:\Users\name\Desktop\NaturalEarthII” is a filepath on your computer. The browser cannot access that for security reasons (imagine what would happen if any website could just read/write to your filesystem).

Putting it in the Cesium folder works because when you launch Cesium locally it starts a local web server that hosts the files and folders in that directory. This is a good article about local web servers: