|
|
|
@ -94,7 +94,9 @@ |
|
|
|
|
latitude, |
|
|
|
|
longitude |
|
|
|
|
} = item |
|
|
|
|
this.newMapMoveToLocation(longitude, latitude, 'reset') |
|
|
|
|
setTimeout(() => { |
|
|
|
|
this.newMapMoveToLocation(longitude, latitude, 'reset') |
|
|
|
|
},500) |
|
|
|
|
}, |
|
|
|
|
bindregionchange(e) { |
|
|
|
|
console.log(e, '***********') |
|
|
|
@ -209,14 +211,10 @@ |
|
|
|
|
} = this.$refs.addressSelector.datassFn(); |
|
|
|
|
let markerList = await this.mapUpdateMarkers(this.polyline[0].points, oilProductCode, juLi, |
|
|
|
|
siteChannel); |
|
|
|
|
console.log('newRoutePlanning markerList', markerList) |
|
|
|
|
//处理油站站点数据并显示 |
|
|
|
|
this.spareMarkers = this.locationProcessing(markerList); |
|
|
|
|
console.log('newRoutePlanning spareMarkers', this.spareMarkers) |
|
|
|
|
let markers = JSON.parse(JSON.stringify(this.spareMarkers)); |
|
|
|
|
console.log('markers', markers) |
|
|
|
|
this.markers = await this.filterMarkers(markers); |
|
|
|
|
console.log('newRoutePlanning this.markers', this.markers) |
|
|
|
|
}, |
|
|
|
|
// 更新最近搜索 |
|
|
|
|
UpdateLocation(Route, type) { |
|
|
|
@ -371,6 +369,7 @@ |
|
|
|
|
latitude: this.coordinate.latitude, |
|
|
|
|
longitude: this.coordinate.longitude |
|
|
|
|
} |
|
|
|
|
console.log(JSON.stringify(data)) |
|
|
|
|
let taht = this; |
|
|
|
|
return new Promise(function(re, rj) { |
|
|
|
|
oilSiteApi.getSiteByGeoHashNew(data).then(markerList => { |
|
|
|
@ -457,12 +456,13 @@ |
|
|
|
|
}, |
|
|
|
|
//移动当前中心点 参数:经纬度 |
|
|
|
|
newMapMoveToLocation(longitude, latitude, type) { |
|
|
|
|
console.log('newMapMoveToLocation') |
|
|
|
|
let that = this |
|
|
|
|
this.mapContext.moveToLocation({ |
|
|
|
|
longitude: longitude, |
|
|
|
|
latitude: latitude, |
|
|
|
|
success(e) { |
|
|
|
|
console.log(`%c 移动 坐标→ ${longitude}-${latitude}`, 'color:green;font-size:20px'); |
|
|
|
|
console.log(`移动 坐标→ ${longitude}-${latitude}`); |
|
|
|
|
if (type) { |
|
|
|
|
that.coordinate.latitude = latitude |
|
|
|
|
that.coordinate.longitude = longitude |
|
|
|
@ -478,6 +478,9 @@ |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
fail(ee) { |
|
|
|
|
console.log('ee',ee) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
addfn(e) { |
|
|
|
|