# Problem with function flyTo()

**URL:** <https://community.cesium.com/t/problem-with-function-flyto/6064>\
**Category:** CesiumJS\
**Created:** [September 20, 2017, 11:49am UTC](https://community.cesium.com/t/problem-with-function-flyto/6064 "2017-09-20T11:49:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonshcherbina93](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@antonshcherbina93](https://community.cesium.com/u/antonshcherbina93)\
**Post date:** [September 20, 2017, 11:49am UTC](https://community.cesium.com/t/problem-with-function-flyto/6064/1 "2017-09-20T11:49:54Z")

</div>

Hello!  
The problem is that after the flight on the coordinates there are problems in the relief depicted in the picture.  
[![](https://cdn1.savepice.ru/uploads/2017/9/20/3a9a80c3ef31242e1a3499961fc5c9e5-full.png) ](https://cdn1.savepice.ru/uploads/2017/9/20/3a9a80c3ef31242e1a3499961fc5c9e5-full.png)  
Who ever had this? How to deal with this? Thanks in advance for the answer!

A minimal code example:  
function test() {  
&nbsp;&nbsp;&nbsp;&nbsp;if (terrainProvider.ready)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scene.camera.flyTo({  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;destination: Cesium.Cartesian3.fromDegrees(37.6255282346114, 55.825518463942 - 0.00275, 163.70853901087668 + 200.0),  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;orientation: {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pitch: Cesium.Math.toRadians(-35.0),  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;roll: 0.0  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});  
&nbsp;&nbsp;&nbsp;&nbsp;else  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setTimeout(function () {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;test();  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, 1000);  
}

The Cesium version 1.37, my operating system is Windows 10 and Google Chrome Browser.

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [September 21, 2017, 9:06pm UTC](https://community.cesium.com/t/problem-with-function-flyto/6064/2 "2017-09-21T21:06:02Z")

</div>

Hi there,

Could you provide a little more context on what data you’re loading, like imagery? I think it may be a problem with that rather than the flyTo.

Thanks!

Gabby
