Commit 4391a46f authored by xxx's avatar xxx

修改视角跟随车辆的判断

parent f10f1b8b
......@@ -377,7 +377,9 @@ export default {
},
//视角跟随车辆
changeView1(lat,lng){
map.setCameraView({ lat: lat, lng: lng })
if(map){
map.setCameraView({ lat: lat, lng: lng })
}
},
// 在图层绑定Popup弹窗
bindLayerPopup(graphicLayer,number) {
......
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