![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Angular2
KimmyJim
这个作者很懒,什么都没留下…
展开
-
Angular2 开发微信公众号获取地理位置ios 在高德地图上显示存在偏移
wx.ready(() => { wx.getLocation({ type: 'gcj02', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02' success: (res) => { this.latitude = res.latitude; // 纬度,浮点数,范围为90 ~ -90...原创 2018-07-30 17:24:10 · 485 阅读 · 0 评论 -
Angular2 引用高德地图
(1)在全局中引用高德地图api(楼主在index.html 里引用)<script src="http://webapi.amap.com/maps?v=1.4.6&key=你的高德key值"></script>(2)在各个组件中引用高德地图component.ts 文件 public ngOnInit() { const mapOb...原创 2018-07-30 17:39:51 · 1353 阅读 · 1 评论