summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Lundblad <ml@dfupdate.se>2022-06-10 10:22:27 +0200
committerMarcus Lundblad <ml@dfupdate.se>2022-06-19 18:23:39 +0200
commitaf00040c94db6ee13267463bceadb2f78051154d (patch)
tree92b6255c4674f938e84a81229de56e8f54c72b73
parent8bf68e37e2c5000856c228a8e5b8527e7125187a (diff)
downloadgnome-maps-wip/mlundblad/location-bias-scale.tar.gz
placeEntry: Always include location paramaterswip/mlundblad/location-bias-scale
Revert to always include location bias parameters to the geocoder regardless of zoom level.
-rw-r--r--src/placeEntry.js14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/placeEntry.js b/src/placeEntry.js
index f08bf468..853eb23e 100644
--- a/src/placeEntry.js
+++ b/src/placeEntry.js
@@ -280,17 +280,9 @@ export class PlaceEntry extends Gtk.SearchEntry {
this._cancellable = new Gio.Cancellable();
this._previousSearch = this.text;
- /* as a stop-gap solution for the location bias tuning issues
- * in Photon (https://github.com/komoot/photon/issues/600),
- * for now search "globally" (e.g. without location bias) for
- * zoom levels above 17, to still allow focused search nearby
- */
- let lat = this._mapView.view.zoom_level > 17 ?
- this._mapView.view.latitude : null;
- let lon = this._mapView.view.zoom_level > 17 ?
- this._mapView.view.longitude : null;
-
- GeocodeFactory.getGeocoder().search(this.text, lat, lon,
+ GeocodeFactory.getGeocoder().search(this.text,
+ this._mapView.view.latitude,
+ this._mapView.view.longitude,
this._cancellable,
(places, error) => {
this._cancellable = null;