Commit d1ae2621 by 前端

去掉地图平移动画

1 parent 35cd0b60
......@@ -164,6 +164,7 @@ const monitor = {
})
MAPGEO.transferAddressByGroup({ data: transferObj }, () => {
this.data.forEach((item, idx) => {
let eLocation = item[item.eLocateType];
if (!eLocation.elng && !eLocation.elat) return;
......@@ -201,9 +202,18 @@ const monitor = {
});
mapService.setFitView(MAP);
// v1.27.0 去掉动画
//mapService.setFitView(MAP,false);
let _markers = [];
let _markersObj = this.markers;
for(let k in _markersObj){
_markers.push(_markersObj[k])
}
MAP.setFitView(_markers,true);
this.allData = this.allData.concat(data);
EventBus.$emit('uiMap.monitor.drawDone');
console.log('是否需要对比:',this.isCompare)
if (this.isCompare) {
this.compareLocation(true)
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!