推荐 最新
无敌英俊大师兄

问个问题,使用高德地图开发定位的时候,需要转坐标系吗?

问个问题,使用高德地图开发,比如使用地理解析api,获取到的经纬度或使用的经纬度需要转成火星坐标,再进行地理解析api的调用吗?

17
1
0
浏览量265
一只tomatoo

使用高德地图的实现定位功能,如何解决定位标志与地图展示的地点icon不重合的情况?

let point_center = [117.120128, 36.652069] function init_map(center, zoom) { map = new AMap.Map(goodsMap, { zoom: zoom, // 缩放级别 center: center // 地图中心点的经纬度 }); // 创建一个标记点 let marker = new AMap.Marker({ position: center, // 标记点的经纬度 map: map // 所属的地图对象 }); // 设置地图显示范围使标记点可见 map.setFitView(); } init_map(point_center, 10) $.ajax({ type: 'POST', url: 'https://restapi.amap.com/v3/geocode/geo?parameters', data: { key: 'b7d627dd31d972643385d4cae3d1a48a', address: bank_location }, success: function (res) { if (res.info == 'OK' && res.status == '1') { let city_info = res.geocodes[0] let center = city_info.location.split(',') init_map(center, 18) } else { layer.msg("定位失败,请重新输入物资储备库地点"); return; } } }); "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241225/8fec906c40fc03b637756c128852ca3b.png) 缩小zoom可以解决这个问题,但如果就是最大级别如何解决?

8
1
0
浏览量316
一颗西兰花

vue使用高德地图地图开发,使用的cdn引入方法,怎么使用步行路径规划api?

修改后 draw_way() { let location_point = [ { start: [117.066993, 36.63845], end: [117.063498, 36.638153] } ]; // 注册步行规划插件 AMap.plugin("AMap.Walking", () => { location_point.forEach((item, index) => { let startPoint = location_point[index].start; let endPoint = location_point[index].end; this.walking = new AMap.Walking({ map: this.map, panel: "panel" + index }); this.walking.search(startPoint, endPoint, (status, result) => { if (status === "complete") { let routes = result.routes; let point_path = routes[0].steps; point_path.forEach((item, index) => { let polyline = new AMap.Polyline({ map: this.map, path: point_path[index].path, strokeColor: "red", strokeOpacity: 0.7, strokeWeight: 4 }); }); } else { console.error(result); } }); }); }); }, 实现效果 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250102/f2071c0fe21dc0f64bb12937479185e2.png)

5
1
0
浏览量208
素素数数

uniapp如何通过“经纬度”调用“高德”、“腾讯”地图?

uniapp如何通过“经纬度”调用“高德”、“腾讯”地图? uniapp目前使用的是“天地图” 如果打包成app,则判断用户手机是否安装“高德”、“腾讯”,如果有,则调用,否则提示没有“地图软件”,如果发布成H5,则打开“高德”、“腾讯”的网页版导航

0
1
0
浏览量194
谁能阻止我删代码

高德地图宽度自适应?

侧边栏点击按钮隐藏之后,高德地图宽度不会自适应,导致左边留白 请问下,在监听侧边栏隐藏之后,高德地图能直接重绘宽度吗? https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241003/37d77e823958afc13f609c973ad71e35.png 点击蓝色按钮后 https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241003/c874a70f4d9170bccc0efc213eb57157.png

0
1
0
浏览量182
古典研发君

高德地图的问题,uniapp打包后的测试版app在安卓手机不显示定位列表,一直在转圈圈,怎么回事?之前的功能在正式版都能用,真机运行也能用,为什么测试版的安卓手机上就会转圈圈呢?

如题,请问一下uniapp打包后的测试版app在ios里可以显示高德地图的定位列表,但是安卓手机却不显示定位列表,一直在转圈圈,怎么回事?之前的功能在正式版都能用,真机运行也能用,为什么测试版的安卓手机上就会转圈圈呢? 定位是可以显示出来的。但是没有列表,展示不出来就无法选中。 不知道是哪里出问题了? 网上找了一圈资料,没有解决问题。 正常情况应该是这样的: "902b61e3265ff34830e1b6297f397fb.jpg" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20240921/43ede32e047864164e05b6f54b71ca95.png) 但是,目前是这样的: "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20240921/62a82c824c41d7b30539388471f33557.png)

0
1
0
浏览量124
Frank的私人司机

高德地图的第三方标准图层WMTS调用天地图的wmts服务地图位置偏移如何解决?

我使用高德地图的第三方标准图层WMTS去调用天地图的wmts服务,加载出来的地图位置有偏移,这种如何解决啊! "高德地图展示的地块位置" (https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241030/7e4ba00f4ea4dd47d3aed915af114e2c.png) "天地图展示的地块位置" (https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241030/643f6345c8646f271c56131734a36373.png) "代码段" (https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241030/4cf5d753a5a31f240fceef1e8ff67026.png) const wms = new window.AMap.TileLayer({ zIndex: 10, getTileUrl(x, y, z) { const params = { SERVICE:'WMTS', LAYER: 'img', REQUEST: 'GetTile', VERSION: '1.0.0', FORMAT: 'tiles', TileMatrixSet: 'w', STYLE:'default', tk:'天地图key', TILECOL: x, TILEROW: y, TILEMATRIX: z } const str = _this.objToParams(params) return `http://t0.tianditu.gov.cn/img_w/wmts?${str}` } }); this.map.add(wms) 在网上查了很多,都没有解决方案,也尝试使用高德的坐标转换,也不可以 "image.png" (https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241030/e648aa2c6621ce90f7de602c05607ec8.png)

0
1
0
浏览量13