[gnome-maps/wip/mlundblad/mapbox-geocode: 3/3] WIP: placeEntry: Hook up Mapbox geocode
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/mapbox-geocode: 3/3] WIP: placeEntry: Hook up Mapbox geocode
- Date: Tue, 23 Apr 2019 21:15:15 +0000 (UTC)
commit 5c33e55f9b4c9985792704c689f4dd4a1dbb9412
Author: Marcus Lundblad <ml update uu se>
Date: Tue Apr 23 23:13:39 2019 +0200
WIP: placeEntry: Hook up Mapbox geocode
src/placeEntry.js | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/placeEntry.js b/src/placeEntry.js
index 820185a..cdf7305 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();
});
+ */
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]