Re: gnome-maps [PATCH] Use Mapquest Open tiles until we produce something better ourselves (if we do).



Sorry for the spam, I'm learning some new (to me) git tools. :)

On Tue, Apr 2, 2013 at 10:32 PM, Mattias Bengtsson <mattias jc bengtsson gmail com> wrote:
---
 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]