Commit 8243d948 authored by yaqizhang's avatar yaqizhang

实时数据地图

parent 087ad856
...@@ -585,8 +585,10 @@ ...@@ -585,8 +585,10 @@
this.dataListdetail3.push(obj3); this.dataListdetail3.push(obj3);
this.form = response.data; this.form = response.data;
this.active = parseInt(response.data.orderStatus) + 1; this.active = parseInt(response.data.orderStatus) + 1;
this.gaoMap.addMarker(DEVICE_TYPE.WORKORDER, this.form) this.gaoMap.addMarker(DEVICE_TYPE.WORKORDER, this.form,()=>{
this.gaoMap.resetMapCenter([this.form.longitude, this.form.latitude]); this.gaoMap.panTo([this.form.longitude, this.form.latitude]);
})
console.log("this.form.longitude",this.form.longitude) console.log("this.form.longitude",this.form.longitude)
console.log("this.form", this.form) console.log("this.form", this.form)
......
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