Setting trackedEntity overrides Camera.lookAt settings

I am loading the route and using flyTo .duration to gradually zoom in on my path.

I activate viewer.trackedEntity upon .complete of the flyTo.

However this activation then overrides the camera's heading, pitch and roll set previously, and even if I reset the camera.lookAt right after I set the trackedEntity it does not take effect.

Thanks for your great help so far.


Entities have a viewFrom property that you can use to set the default camera view. It expects a Cartesian3 value that represents and east-north-up reference frame.