Codebase list gnome-maps / a1c687f
turnPointMarker: Fix going to the turnpoint This method was still using the old libchamplain APIs, adapt it to use the libshumate API. Marcus Lundblad 1 year, 7 months ago
1 changed file(s) with 1 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
8888 }
8989
9090 goTo() {
91 let view = this._mapView.view;
92 let turnPointZoomLevel = 15;
93 let latitude = this.latitude;
94 let longitude = this.longitude;
95
96 view.goto_duration = 0;
97
98 Utils.once(view, 'animation-completed', () => {
99 view.zoom_level = turnPointZoomLevel;
100 view.center_on(latitude, longitude);
101 });
102
103 view.go_to(this.latitude, this.longitude);
91 this._mapView.map.go_to(this.latitude, this.longitude);
10492 }
10593 }
10694