diff options
author | Marcus Lundblad <ml@dfupdate.se> | 2023-03-06 21:25:56 +0100 |
---|---|---|
committer | Marcus Lundblad <ml@dfupdate.se> | 2023-03-09 23:28:11 +0100 |
commit | 6f53dc452345fc3ef3812ebc3ab1deeb7ef9dac1 (patch) | |
tree | 3259f9bec736404cb8af44bcff4612915915e641 | |
parent | 917e6824235f4ba8f93b2be58849affdab83f94f (diff) | |
download | gnome-maps-6f53dc452345fc3ef3812ebc3ab1deeb7ef9dac1.tar.gz |
mapWalker: Disable the "go to" animationwip/mlundblad/disable-goto-animation
To prevent getting throttled by the tile server (HTTP 429),
as a workaround for now disable the animation.
https://gitlab.gnome.org/GNOME/gnome-maps/-/issues/546
-rw-r--r-- | src/mapWalker.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mapWalker.js b/src/mapWalker.js index b4532f67..76a6ffbf 100644 --- a/src/mapWalker.js +++ b/src/mapWalker.js @@ -95,6 +95,15 @@ export class MapWalker extends GObject.Object { this.place.location.longitude].join(' ')); this._mapView.emit('going-to'); + /* + * WORKAROUND!!!! + * + * For now disable the go-to animation to prevent getting + * throttled by the tile server: + * https://gitlab.gnome.org/GNOME/gnome-maps/-/issues/546 + */ + animate = false; + if (!animate) { this._mapView.map.center_on(this.place.location.latitude, this.place.location.longitude); |