[gnome-maps/wip/mlundblad/mapbox-geocode: 2/3] application: Initialize Mapbox geocode instance
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/mapbox-geocode: 2/3] application: Initialize Mapbox geocode instance
- Date: Tue, 23 Apr 2019 21:15:10 +0000 (UTC)
commit 62e09712f1e094dfb0a41665b9ff2036138533ed
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]