Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

How to find lat long value of point in front of screen. #70

Open
ximrx opened this issue Jan 12, 2018 · 1 comment
Open

How to find lat long value of point in front of screen. #70

ximrx opened this issue Jan 12, 2018 · 1 comment

Comments

@ximrx
Copy link

ximrx commented Jan 12, 2018

Can we find the lat long value of point in center updated on zoom/rotation?

@sebosp
Copy link

sebosp commented May 6, 2020

Probably you don't need it anymore, but for just in case, I use this:

globe_center_coords = {
    lat: (target.y * 90) / (Math.PI / 2),
    lng: ((target.x - ((Math.PI / 2) * 3)) * 180) / Math.PI
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants