Commit 2ce569c7 authored by xxx's avatar xxx

添加视角跟随方法

parent 04164bcd
......@@ -377,7 +377,7 @@ export default {
},
//视角跟随车辆
changeView1(lat,lng){
map.setCameraView({ lat: lat, lng: lng, alt: 100, heading: 360, pitch: -90 })
map.setCameraView({ lat: lat, lng: lng })
},
// 在图层绑定Popup弹窗
bindLayerPopup(graphicLayer,number) {
......
......@@ -341,6 +341,9 @@ export default {
let zuizhong1 = {};
zuizhong1.name = that.equipmentName;
zuizhong1.jsonObject = JSON.stringify(LoaObj1);
//地图视角跟随
//that.$refs.mars3dViewerMapMethod.changeView1(position.coords.latitude,position.coords.longitude);
//上传坐标
httpPostForJson(gpsPhoneGpsQuery,zuizhong1).then((res1) => {})
httpPostForJson(carRealTimeLocationQuery2,JSON.stringify(LoaObj1)).then((res2) => {})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment