diff options
author | Marcus Lundblad <ml@update.uu.se> | 2019-04-23 23:13:39 +0200 |
---|---|---|
committer | Marcus Lundblad <ml@update.uu.se> | 2019-04-24 19:31:24 +0200 |
commit | b6c7eff3027c82caa18ee5bde703a4a0c0801b9c (patch) | |
tree | 1bf9bc0d8cb44ef450e19a780520026a7d693e03 | |
parent | 973b7238971b8aa82389063b2222d992f208a05f (diff) | |
download | gnome-maps-wip/mlundblad/mapbox-geocode.tar.gz |
WIP: placeEntry: Hook up Mapbox geocodewip/mlundblad/mapbox-geocode
-rw-r--r-- | src/placeEntry.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/placeEntry.js b/src/placeEntry.js index 820185a2..cdf73058 100644 --- a/src/placeEntry.js +++ b/src/placeEntry.js @@ -28,6 +28,7 @@ const Gtk = imports.gi.Gtk; const Application = imports.application; const Location = imports.location; +const MapboxGeocode = imports.mapboxGeocode; const Place = imports.place; const PlaceStore = imports.placeStore; const PlacePopover = imports.placePopover; @@ -206,6 +207,11 @@ var PlaceEntry = GObject.registerClass({ let bbox = this._mapView.view.get_bounding_box(); this._popover.showSpinner(); + + Application.mapboxGeocode.search(this.text, + this._mapView.view.latitude, + this._mapView.view.longitude); + /* this._cancellable = new Gio.Cancellable(); Application.geocodeService.search(this.text, bbox, this._cancellable, (places) => { if (!places) { @@ -216,5 +222,6 @@ var PlaceEntry = GObject.registerClass({ this._popover.updateResult(places, this.text); this._popover.showResult(); }); + */ } }); |