-
Notifications
You must be signed in to change notification settings - Fork 304
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
切换底图,坐标偏差 #43
Comments
天地图和高德使用的坐标系不一样,需要根据你定位设备的坐标系,转换一下坐标数据为天地图或高德的坐标。 假如你使用的是 chrome 浏览器获取坐标,它给出的数据通常是 WGS-84 坐标系。 天地图是这个坐标系:CGCS2000 坐标系,它与 WGS-84 坐标系差异很小。所以你对精度要求不高的情况下,可以直接用。也即你加载天地图底图时,坐标基本上是准的。 高德地图是 GCJ-02 坐标系,与 WGS-84 坐标系差异较大。所以使用时应该先将 chrome 给出的坐标转换一下。示例代码如下:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用了天地图和高德地图,切换后地图覆盖物位置有偏移,请问这个要怎么处理?
The text was updated successfully, but these errors were encountered: