Google Earth API getting camera's absolute position
For a project at school I need to have to absolute position of the camera.
I setup the camera with an tilt of 90 degrees so that it looks like a 1st person view, then I need to calculate the distance between the camera and between another point.
Bu开发者_C百科t when I use the google earth API, the camera latitude and longitude are from the focuspoint and not from the absolute camera position.
Is there another way to read out these parameters or should I calculate backwards with the Range and Tilt?
Thanks!
The Google Earth API defines two methods for getting the current camera view: copyAsLookAt()
and copyAsCamera()
. I think the latter is what you need. More information at the documentation.
Next time, please double check the documentation before asking here!
精彩评论