微信小程序使用getlocation和chooselocation得到的坐标不一致的原因
这也是一个新手容易犯的错误,技术文档中可以找到wx.getlocation得到的默认坐标系是wgs84即GPS坐标系,但是在chooselocation和openlocation中并未再次提及坐标系type,其实在wx.getlocation中提及过默认返回wgs84,但是可以通过制定type为gcj02用于openlocation,同样在wx.openlocation中的示例也用到了这点:其实只有wx.gentlocation默认返回的是gps系,而其他方法都使用的是火星坐标系也就是gcj02,...
原创
2020-10-11 00:26:02 ·
3508 阅读 ·
0 评论