gnome-maps [PATCH] Use Mapquest Open tiles until we produce something better ourselves (if we do).
- From: Mattias Bengtsson <mattias jc bengtsson gmail com>
- To: maps-list gnome org
- Subject: gnome-maps [PATCH] Use Mapquest Open tiles until we produce something better ourselves (if we do).
- Date: Tue, 2 Apr 2013 22:32:37 +0200
---
src/mapView.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mapView.js b/src/mapView.js
index e295a1a..911fc50 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -39,7 +39,9 @@ const MapView = new Lang.Class({
this.widget = new GtkChamplain.Embed();
this.actor = this.widget.get_view();
+ let tileFactory = Champlain.MapSourceFactory.dup_default();
this._view = this.actor;
+ this._view.set_map_source(tileFactory.create_cached_source("osm-mapquest"));
this._markerLayer = new Champlain.MarkerLayer();
this._markerLayer.set_selection_mode(Champlain.SelectionMode.SINGLE);
--
1.8.1.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]