Commit 73ebb068 by 张杰

Merge branch 'v1.27.0' into 'develop'

V1.27.0

See merge request !43
2 parents 72791e7d 937e3250
...@@ -385,7 +385,7 @@ MapService.prototype = { ...@@ -385,7 +385,7 @@ MapService.prototype = {
infoDiv.querySelector('[data-time').setAttribute('aria-label', eLocation.dateTime); infoDiv.querySelector('[data-time').setAttribute('aria-label', eLocation.dateTime);
EventBus.$emit('uiMap.monitor.changeELocate', info) EventBus.$emit('uiMap.monitor.changeELocate', info)
EventBus.$emit('uiMap.monitor.drawDone'); EventBus.$emit('uiMap.monitor.drawDone');
self.setFitView() //self.setFitView()
}) })
// gps // gps
...@@ -410,7 +410,7 @@ MapService.prototype = { ...@@ -410,7 +410,7 @@ MapService.prototype = {
infoDiv.querySelector('[data-time').setAttribute('aria-label', eLocation.dateTime); infoDiv.querySelector('[data-time').setAttribute('aria-label', eLocation.dateTime);
EventBus.$emit('uiMap.monitor.changeELocate', info) EventBus.$emit('uiMap.monitor.changeELocate', info)
EventBus.$emit('uiMap.monitor.drawDone'); EventBus.$emit('uiMap.monitor.drawDone');
self.setFitView() //self.setFitView()
}) })
......
...@@ -87,7 +87,7 @@ const monitor = { ...@@ -87,7 +87,7 @@ const monitor = {
const MAP = mapService.map; const MAP = mapService.map;
const lnglat = this.markers[snSourceType].getPosition(); const lnglat = this.markers[snSourceType].getPosition();
this.infowins[snSourceType].open(MAP, lnglat); this.infowins[snSourceType].open(MAP, lnglat);
MAP.setZoomAndCenter(MAP.getZoom(), lnglat); MAP.setZoomAndCenter(MAP.getZoom(), lnglat,true);
} }
}); });
...@@ -164,6 +164,7 @@ const monitor = { ...@@ -164,6 +164,7 @@ const monitor = {
}) })
MAPGEO.transferAddressByGroup({ data: transferObj }, () => { MAPGEO.transferAddressByGroup({ data: transferObj }, () => {
this.data.forEach((item, idx) => { this.data.forEach((item, idx) => {
let eLocation = item[item.eLocateType]; let eLocation = item[item.eLocateType];
if (!eLocation.elng && !eLocation.elat) return; if (!eLocation.elng && !eLocation.elat) return;
...@@ -201,9 +202,18 @@ const monitor = { ...@@ -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); this.allData = this.allData.concat(data);
EventBus.$emit('uiMap.monitor.drawDone'); EventBus.$emit('uiMap.monitor.drawDone');
console.log('是否需要对比:',this.isCompare)
if (this.isCompare) { if (this.isCompare) {
this.compareLocation(true) this.compareLocation(true)
} }
...@@ -325,7 +335,7 @@ const monitor = { ...@@ -325,7 +335,7 @@ const monitor = {
const MAP = mapService.map const MAP = mapService.map
const lnglat = makers.getPosition() const lnglat = makers.getPosition()
infoWindow.open(MAP, lnglat) infoWindow.open(MAP, lnglat)
MAP.setZoomAndCenter(MAP.getZoom(), lnglat) MAP.setZoomAndCenter(MAP.getZoom(), lnglat,true)
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!