# Resetting 3D globe

**URL:** <https://community.cesium.com/t/resetting-3d-globe/2368>\
**Category:** CesiumJS\
**Created:** [April 18, 2015, 5:11pm UTC](https://community.cesium.com/t/resetting-3d-globe/2368 "2015-04-18T17:11:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tejas\_parekh](https://avatars.discourse-cdn.com/v4/letter/t/8e8cbc/32.png) [@tejas\_parekh](https://community.cesium.com/u/tejas_parekh)\
**Post date:** [April 18, 2015, 5:11pm UTC](https://community.cesium.com/t/resetting-3d-globe/2368/1 "2015-04-18T17:11:37Z")

</div>

Hi All,

I have created few shapes on 3D globe with cesium.  
I want to remove those shapes and reset the 3D globe to its original position.  
Which function should i call to achieve this.

Thanks in advance.

Tejas

---

<div class="post-metadata">

**Author:** ![Lu\_Yiheng](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@Lu\_Yiheng](https://community.cesium.com/u/Lu_Yiheng)\
**Post date:** [April 21, 2015, 8:12am UTC](https://community.cesium.com/t/resetting-3d-globe/2368/2 "2015-04-21T08:12:15Z")

</div>

I’m not sure if there is a shortcut for “reset” the globe. But I think a possible solution is:

1. Remove everything

viewer.entities.removeAll();

1. Reset camera to where you want

viewer.scene.camera.setView({

```
position : Cesium.Cartesian3.fromDegrees(lon, lat, height),

heading : 0.0,

pitch : -Cesium.Math.PI_OVER_TWO,

roll : 0.0

```

})

Hope this works.

---

<div class="post-metadata">

**Author:** ![tejas\_parekh](https://avatars.discourse-cdn.com/v4/letter/t/8e8cbc/32.png) [@tejas\_parekh](https://community.cesium.com/u/tejas_parekh)\
**Post date:** [April 21, 2015, 9:23am UTC](https://community.cesium.com/t/resetting-3d-globe/2368/3 "2015-04-21T09:23:03Z")

</div>

Hi Marco,

Thanks for the quick response I will apply and update you.

Tejas

---

<div class="post-metadata">

**Author:** ![tejas\_parekh](https://avatars.discourse-cdn.com/v4/letter/t/8e8cbc/32.png) [@tejas\_parekh](https://community.cesium.com/u/tejas_parekh)\
**Post date:** [April 24, 2015, 9:49am UTC](https://community.cesium.com/t/resetting-3d-globe/2368/4 "2015-04-24T09:49:30Z")

</div>

Hi Narco,

Thanks this worked well now i have another technical glitch where i need help.  
I want to load heatmap and then once i zoom in it should convert heatmap in to some other map.  
Is it possible some how?

Please help.

Thanks,  
Tejas
