vasturiano / three-globe

WebGL Globe Data Visualization as a ThreeJS reusable 3D object
https://vasturiano.github.io/three-globe/example/links/
MIT License
1.22k stars 147 forks source link

[Question] How to position camera base on the first Lat and Long? #73

Closed jayetan closed 1 year ago

jayetan commented 1 year ago

I have an array of Lat and Long but I want a specific Lat Long or the first Lat Lng to be the center of the camera.

vasturiano commented 1 year ago

@jayetan this module has no camera, you should be in control of your camera as it's really external to this module.

But, if you want to find out how to convert lat,lng coordinates to the 3D space (x,y,z), you can use th getCoords(lat, lng [,altitude]) for that purpose.

jayetan commented 1 year ago

The conversion is different from the 3D space Im getting from the camera, I used the Globe.gl instead. Thanks!