Commit 677c756e by niuxiaolin

latest ui 08/09/2019 14:03:06

parent 91fb26c2
...@@ -287,15 +287,15 @@ export class MainComponent implements OnInit { ...@@ -287,15 +287,15 @@ export class MainComponent implements OnInit {
var view = this.map.getViewport(points,{enableAnimation:true,delay:2000}); var view = this.map.getViewport(points,{enableAnimation:true,delay:2000});
this.map.panTo(view.center,{duration:1000}); this.map.panTo(view.center,{duration:1000});
var orginZoom = this.map.getZoom(); // var orginZoom = this.map.getZoom();
var dur =view.zoom - this.map.getZoom(); // var dur =view.zoom - this.map.getZoom();
timer(0, 200) // timer(0, 200)
.pipe(timeInterval(), pluck('interval'), take(dur)).subscribe((index:any)=>{ // .pipe(timeInterval(), pluck('interval'), take(dur)).subscribe((index:any)=>{
// this.m.dispatchWheelEvent_Chrome(document.getElementById("baidu-map"),10); // // this.m.dispatchWheelEvent_Chrome(document.getElementById("baidu-map"),10);
} // }
); // );
this.map.centerAndZoom(view.center,view.zoom); this.map.centerAndZoom(view.center,view.zoom);
// setTimeout(() => { // setTimeout(() => {
// this.m.dispatchWheelEvent_Chrome(document.getElementById("baidu-map"),50); // this.m.dispatchWheelEvent_Chrome(document.getElementById("baidu-map"),50);
......
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