[gnome-maps/wip/mlundblad/mapbox-geocode: 2/3] application: Initialize Mapbox geocode instance



commit 973b7238971b8aa82389063b2222d992f208a05f
Author: Marcus Lundblad <ml update uu se>
Date:   Tue Apr 23 23:13:07 2019 +0200

    application: Initialize Mapbox geocode instance

 src/application.js | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/application.js b/src/application.js
index 9cba29c..3563824 100644
--- a/src/application.js
+++ b/src/application.js
@@ -33,6 +33,7 @@ const Format = imports.format;
 const Geoclue = imports.geoclue;
 const GeocodeService = imports.geocodeService;
 const MainWindow = imports.mainWindow;
+const MapboxGeocode = imports.mapboxGeocode;
 const Maps = imports.gi.GnomeMaps;
 const OSMEdit = imports.osmEdit;
 const OSMTypeSearchEntry = imports.osmTypeSearchEntry;
@@ -49,6 +50,7 @@ var placeStore = null;
 var routingDelegator = null;
 var geoclue = null;
 var geocodeService = null;
+var mapboxGeocode = null;
 var networkMonitor = null;
 var checkInManager = null;
 var contactStore = null;
@@ -231,6 +233,7 @@ var Application = GObject.registerClass({
         routingDelegator = new RoutingDelegator.RoutingDelegator({ query: routeQuery });
         geoclue          = new Geoclue.Geoclue();
         geocodeService   = new GeocodeService.GeocodeService();
+        mapboxGeocode    = new MapboxGeocode.MapboxGeocode();
         networkMonitor   = Gio.NetworkMonitor.get_default();
         networkMonitor.connect('network-changed',
                                this._checkNetwork.bind(this));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]