Commit 037e48f4 by niuxiaolin

latest ui 08/11/2019 15:19:31

parent 5b6188d4
...@@ -336,7 +336,7 @@ export class MainComponent implements OnInit { ...@@ -336,7 +336,7 @@ 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:500});
// 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)
...@@ -350,7 +350,7 @@ export class MainComponent implements OnInit { ...@@ -350,7 +350,7 @@ export class MainComponent implements OnInit {
setTimeout(() => { setTimeout(() => {
(window as any).xiaolinMouseWheel(this.wheelEvent); (window as any).xiaolinMouseWheel(this.wheelEvent);
}, 1000); }, 500);
// setTimeout(() => { // setTimeout(() => {
// this.map.centerAndZoom(view.center,view.zoom); // this.map.centerAndZoom(view.center,view.zoom);
// }, 4000); // }, 4000);
......
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