diff options
-rw-r--r-- | src/mapWalker.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/mapWalker.js b/src/mapWalker.js index 76a6ffbf..09195f8e 100644 --- a/src/mapWalker.js +++ b/src/mapWalker.js @@ -83,9 +83,16 @@ export class MapWalker extends GObject.Object { zoomToFit() { let zoom = this._getZoomLevel(); - this._mapView.map.go_to_full(this.place.location.latitude, - this.place.location.longitude, - zoom); + /* + * WORKAROUND!!!! + * + * For now disable the animation to prevent getting + * throttled by the tile server: + * https://gitlab.gnome.org/GNOME/gnome-maps/-/issues/546 + */ + this._mapView.map.center_on(this.place.location.latitude, + this.place.location.longitude); + this._mapView.map.viewport.zoom_level = zoom; } goTo(animate, linear) { |