diff options
-rw-r--r-- | src/transitArrivalRow.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/transitArrivalRow.js b/src/transitArrivalRow.js index 7818199b..a9d78bf3 100644 --- a/src/transitArrivalRow.js +++ b/src/transitArrivalRow.js @@ -42,7 +42,17 @@ export class TransitArrivalRow extends Gtk.ListBoxRow { } _onPress(coord) { - this._mapView.map.go_to_full(coord[0], coord[1], 16); + /* + * 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(coord[0], coord[1]); + this._mapView.map.viewport.zoom_level = 16; + + //this._mapView.map.go_to_full(coord[0], coord[1], 16); } } |