[gnome-maps/wip/mlundblad/fix-selecting-turnpoint: 3/3] turnPointMarker: Fix going to the turnpoint
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/fix-selecting-turnpoint: 3/3] turnPointMarker: Fix going to the turnpoint
- Date: Sat, 24 Sep 2022 20:26:21 +0000 (UTC)
commit ea4cc1081a779aa445c2caf2e658a00d3df19828
Author: Marcus Lundblad <ml dfupdate se>
Date: Thu Sep 22 22:47:03 2022 +0200
turnPointMarker: Fix going to the turnpoint
This method was still using the old libchamplain
APIs, adapt it to use the libshumate API.
src/turnPointMarker.js | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
---
diff --git a/src/turnPointMarker.js b/src/turnPointMarker.js
index faacabe7..6ac57791 100644
--- a/src/turnPointMarker.js
+++ b/src/turnPointMarker.js
@@ -89,19 +89,7 @@ export class TurnPointMarker extends MapMarker {
}
goTo() {
- let view = this._mapView.view;
- let turnPointZoomLevel = 15;
- let latitude = this.latitude;
- let longitude = this.longitude;
-
- view.goto_duration = 0;
-
- Utils.once(view, 'animation-completed', () => {
- view.zoom_level = turnPointZoomLevel;
- view.center_on(latitude, longitude);
- });
-
- view.go_to(this.latitude, this.longitude);
+ this._mapView.map.go_to(this.latitude, this.longitude);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]