# Cesium in a private Site

**URL:** <https://community.cesium.com/t/cesium-in-a-private-site/45349>\
**Category:** General\
**Created:** [February 27, 2026, 7:33pm UTC](https://community.cesium.com/t/cesium-in-a-private-site/45349 "2026-02-27T19:33:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cverwalter](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/cverwalter/32/3476_2.png) [@cverwalter](https://community.cesium.com/u/cverwalter)\
**Post date:** [February 27, 2026, 7:33pm UTC](https://community.cesium.com/t/cesium-in-a-private-site/45349/1 "2026-02-27T19:33:13Z")

</div>

[This page](https://notizen.netzjahre.com/cesium3d/brecherspitz-2016-05-06/) contains the code beginning with (some \< and \> removed):

script src=“https://cesium.com/downloads/cesiumjs/releases/1.138/Build/Cesium/Cesium.js”\> \<link href=“https://cesium.com/downloads/cesiumjs/releases/1.138/Build/Cesium/Widgets/widgets.css” rel=“stylesheet”

If I call the page then the Cesium 3D map will not be shown.  
What is the bug?  
thx in advance for your hints.  
josef aka cverwalter

Off topic / for information: I have less than 10 of these Cesium maps in my private site.

---

<div class="post-metadata">

**Author:** ![Marco13](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/marco13/32/2757_2.png) [@Marco13](https://community.cesium.com/u/Marco13)\
**Post date:** [February 28, 2026, 10:24am UTC](https://community.cesium.com/t/cesium-in-a-private-site/45349/2 "2026-02-28T10:24:51Z")

</div>

From a _quick_ look at the console, the error message is  
`Cesium.createWorldTerrain is not a function`  
and in code, there is

```auto
 var viewer = new Cesium.Viewer('cesiumContainer',{
  terrainProvider: Cesium.createWorldTerrain()
});

```

The `createWorldTerrain` function was replaced a few years ago. (Looking at the date in the URL, it’s not surprising that the code does not work with the latest version (1.138) of Cesium - it might be that the code is 10 years old, and a lot has changed in the meantime…)

---

<div class="post-metadata">

**Author:** ![cverwalter](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/cverwalter/32/3476_2.png) [@cverwalter](https://community.cesium.com/u/cverwalter)\
**Post date:** [February 28, 2026, 12:18pm UTC](https://community.cesium.com/t/cesium-in-a-private-site/45349/3 "2026-02-28T12:18:06Z")

</div>

Thank you very much. I looked at [this](https://cesium.com/learn/cesiumjs-learn/cesiumjs-quickstart/) and found the solution in the example listed there.
