Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在unity中怎么显示鼠标所在位置的经纬度 #53

Open
eddywen opened this issue Jan 8, 2020 · 0 comments
Open

在unity中怎么显示鼠标所在位置的经纬度 #53

eddywen opened this issue Jan 8, 2020 · 0 comments
Labels

Comments

@eddywen
Copy link

eddywen commented Jan 8, 2020

@llliao104如何显示起点终点的路径 #52 提到的问题

使用AbstractMap提供的方法:

public virtual Vector2d WorldToGeoPosition(Vector3 realworldPoint)
{
    // For quadtree implementation of the map, the map scale needs to be compensated for.
    var scaleFactor = Mathf.Pow(2, (InitialZoom - AbsoluteZoom));
        return (Root.InverseTransformPoint(realworldPoint)).GetGeoPosition(CenterMercator, WorldRelativeScale * scaleFactor);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant