Cartesian is required

Hi

I got this error when i get the center position of the current viewer.

I hope to get your answer.

Thanks!

xiaoning

I think the issue might be that the position you are picking in that frame is not on the globe, (perhaps it lands in space), so the position returned by globe.pick is undefined, so that’s why the function throws that error.

You should add a console.log there to confirm this, and add an if statement to account for that. Let me know if that fixes it.

Thanks for your help! I solved the problem according to the ideas you provided.

在 2019年8月3日星期六 UTC+8上午9:44:10,Omar Shehata写道: