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:38:22 +0100 |
commit | 208729f844b62b540680fe5dfe3e30d9dac5c0fa (patch) | |
tree | 8a30886e3df71eb493e76cf49db30a9a54950153 | |
parent | 99feb4d62bb0e72f17854924c57a5eca7eb844e7 (diff) | |
download | gnome-maps-208729f844b62b540680fe5dfe3e30d9dac5c0fa.tar.gz |
mapWalker: Disable the "go to" 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); |