Merge lp:~evfool/maya/lp1390783-mapquest into lp:~elementary-apps/maya/trunk

Proposed by Robert Roth
Status: Merged
Approved by: Corentin Noël
Approved revision: 729
Merged at revision: 729
Proposed branch: lp:~evfool/maya/lp1390783-mapquest
Merge into: lp:~elementary-apps/maya/trunk
Diff against target: 12 lines (+2/-0)
1 file modified
src/EventEdition/LocationPanel.vala (+2/-0)
To merge this branch: bzr merge lp:~evfool/maya/lp1390783-mapquest
Reviewer Review Type Date Requested Status
elementary Apps team Pending
Review via email: mp+245426@code.launchpad.net

Commit message

[LocationPanel] Use MapQuest map source instead of the default on the event location tab.

Description of the change

Use MapQuest map source instead of the default on the event location tab (lp:1390783).

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/EventEdition/LocationPanel.vala'
2--- src/EventEdition/LocationPanel.vala 2014-12-27 17:44:19 +0000
3+++ src/EventEdition/LocationPanel.vala 2014-12-29 15:17:48 +0000
4@@ -72,6 +72,8 @@
5 champlain_embed = new GtkChamplain.Embed ();
6 var view = champlain_embed.champlain_view;
7 var marker_layer = new Champlain.MarkerLayer.full (Champlain.SelectionMode.SINGLE);
8+ var factory = Champlain.MapSourceFactory.dup_default ();
9+ view.map_source = factory.create_cached_source (Champlain.MAP_SOURCE_OSM_MAPQUEST);
10 view.add_layer (marker_layer);
11
12 load_contact.begin ();

Subscribers

People subscribed via source and target branches