Look at from center

Is there a function that exists that allows me to Look at a lat and long from another lat and lon point in 3D?

So basically look at 34.33 -87.33 from 36.39 -88.34. Tried searching and couldn’t find a example.

Hi Chris,

You can use the Camera.lookAt function using a Cartesian3 position and a Cartesian3 offset. First convert your Cartographic positions to Cartesian3 with Cartographic.toCartesian, then use Cartesian3.subtract to subtract the destination from the view position to get the offset.

Thanks,

Gabby