H5/pages/location/location.vue
@@ -113,8 +113,9 @@ function success(position) { geoconv({coords:`${position.coords.longitude},${position.coords.latitude}`}).then(res=>{ const latitude = res.data[0].y; const longitude = res.data[0].x; const latitude = res.data.result[0].y; const longitude = res.data.result[0].x; var point = new BMapGL.Point(longitude, latitude); // 创建点坐标 that.map.enableScrollWheelZoom(true); that.map.centerAndZoom(point, 12); var marker = new BMapGL.Marker(point);