<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[150535] users/devans/GNOME-3/stable/dports/gnome/gnome-maps</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/150535">150535</a></dd>
<dt>Author</dt> <dd>devans@macports.org</dd>
<dt>Date</dt> <dd>2016-07-20 19:52:57 -0700 (Wed, 20 Jul 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>GNOME-3/stable: gnome-maps, temporary patch, MapQuest has disabled free public access to map tiles, use OSM Mapnik tiles instead, disable ability to switch to aerial tiles, increment revision (bz764841).</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#usersdevansGNOME3stabledportsgnomegnomemapsPortfile">users/devans/GNOME-3/stable/dports/gnome/gnome-maps/Portfile</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#usersdevansGNOME3stabledportsgnomegnomemapsfilespatchdisableswitchbetweenstreetandaerialtilesdiff">users/devans/GNOME-3/stable/dports/gnome/gnome-maps/files/patch-disable-switch-between-street-and-aerial-tiles.diff</a></li>
<li><a href="#usersdevansGNOME3stabledportsgnomegnomemapsfilespatchstopusingmapquesttilesdiff">users/devans/GNOME-3/stable/dports/gnome/gnome-maps/files/patch-stop-using-mapquest-tiles.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="usersdevansGNOME3stabledportsgnomegnomemapsPortfile"></a>
<div class="modfile"><h4>Modified: users/devans/GNOME-3/stable/dports/gnome/gnome-maps/Portfile (150534 => 150535)</h4>
<pre class="diff"><span>
<span class="info">--- users/devans/GNOME-3/stable/dports/gnome/gnome-maps/Portfile        2016-07-21 01:49:41 UTC (rev 150534)
+++ users/devans/GNOME-3/stable/dports/gnome/gnome-maps/Portfile        2016-07-21 02:52:57 UTC (rev 150535)
</span><span class="lines">@@ -6,6 +6,7 @@
</span><span class="cx"> 
</span><span class="cx"> name                gnome-maps
</span><span class="cx"> version             3.20.1
</span><ins>+revision            1
</ins><span class="cx"> license             GPL-2
</span><span class="cx"> set branch          [join [lrange [split ${version} .] 0 1] .]
</span><span class="cx"> description         Map application for GNOME 3.
</span><span class="lines">@@ -46,10 +47,15 @@
</span><span class="cx"> depends_run         port:gnome-themes-standard \
</span><span class="cx">                     port:yelp
</span><span class="cx"> 
</span><del>-configure.args      --disable-silent-rules
-
</del><span class="cx"> gobject_introspection yes
</span><span class="cx"> 
</span><ins>+# temporary patch
+# mapquest has disabled free public access to map tiles
+# https://bugzilla.gnome.org/show_bug.cgi?id=764841
+
+patchfiles          patch-stop-using-mapquest-tiles.diff \
+                    patch-disable-switch-between-street-and-aerial-tiles.diff
+
</ins><span class="cx"> # reconfigure using upstream autogen.sh for intltool 0.51 compatibility
</span><span class="cx"> 
</span><span class="cx"> post-patch {
</span><span class="lines">@@ -58,6 +64,8 @@
</span><span class="cx"> 
</span><span class="cx"> configure.cmd       ./autogen.sh
</span><span class="cx"> 
</span><ins>+configure.args      --disable-silent-rules
+
</ins><span class="cx"> platform darwin {
</span><span class="cx">     if {${configure.cxx_stdlib} eq &quot;libstdc++&quot;} {
</span><span class="cx">         version     3.18.2
</span></span></pre></div>
<a id="usersdevansGNOME3stabledportsgnomegnomemapsfilespatchdisableswitchbetweenstreetandaerialtilesdiff"></a>
<div class="addfile"><h4>Added: users/devans/GNOME-3/stable/dports/gnome/gnome-maps/files/patch-disable-switch-between-street-and-aerial-tiles.diff (0 => 150535)</h4>
<pre class="diff"><span>
<span class="info">--- users/devans/GNOME-3/stable/dports/gnome/gnome-maps/files/patch-disable-switch-between-street-and-aerial-tiles.diff                                (rev 0)
+++ users/devans/GNOME-3/stable/dports/gnome/gnome-maps/files/patch-disable-switch-between-street-and-aerial-tiles.diff        2016-07-21 02:52:57 UTC (rev 150535)
</span><span class="lines">@@ -0,0 +1,114 @@
</span><ins>+From 6f8169421d619f7cf764f4dc0a0b6a16a3201c3b Mon Sep 17 00:00:00 2001
+From: Marcus Lundblad &lt;ml@update.uu.se&gt;
+Date: Wed, 22 Jun 2016 23:30:52 +0200
+Subject: [PATCH] layerPopover: Remove ability to switch b/w street and aerial
+
+As the aerial tiles currently are provided by MapQuest, the switcher
+buttons is not needed currently.
+Keeps the ability to load custom map layers.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=764841
+---
+ data/ui/layers-popover.ui | 48 ++---------------------------------------------
+ src/layersPopover.js      |  6 +-----
+ 2 files changed, 3 insertions(+), 51 deletions(-)
+
+diff --git a/data/ui/layers-popover.ui b/data/ui/layers-popover.ui
+index a33f17d..cd5b71e 100644
+--- data/ui/layers-popover.ui
++++ data/ui/layers-popover.ui
+@@ -10,50 +10,6 @@
+         &lt;property name=&quot;valign&quot;&gt;center&lt;/property&gt;
+         &lt;property name=&quot;row_spacing&quot;&gt;5&lt;/property&gt;
+         &lt;child&gt;
+-          &lt;object class=&quot;GtkRadioButton&quot; id=&quot;streetLayerButton&quot;&gt;
+-            &lt;property name=&quot;visible&quot;&gt;True&lt;/property&gt;
+-            &lt;property name=&quot;can-focus&quot;&gt;True&lt;/property&gt;
+-            &lt;property name=&quot;action-name&quot;&gt;win.map-type&lt;/property&gt;
+-            &lt;property name=&quot;action-target&quot;&gt;&quot;STREET&quot;&lt;/property&gt;
+-            &lt;property name=&quot;draw-indicator&quot;&gt;False&lt;/property&gt;
+-            &lt;style&gt;
+-              &lt;class name=&quot;layer-radio-button&quot;/&gt;
+-            &lt;/style&gt;
+-            &lt;child&gt;
+-              &lt;object class=&quot;GtkImage&quot; id=&quot;streetLayerImage&quot;&gt;
+-                &lt;property name=&quot;visible&quot;&gt;True&lt;/property&gt;
+-                &lt;property name=&quot;resource&quot;&gt;/org/gnome/Maps/ui/maptype-street.png&lt;/property&gt;
+-              &lt;/object&gt;
+-            &lt;/child&gt;
+-          &lt;/object&gt;
+-          &lt;packing&gt;
+-            &lt;property name=&quot;left-attach&quot;&gt;0&lt;/property&gt;
+-            &lt;property name=&quot;top-attach&quot;&gt;0&lt;/property&gt;
+-          &lt;/packing&gt;
+-        &lt;/child&gt;
+-        &lt;child&gt;
+-          &lt;object class=&quot;GtkRadioButton&quot; id=&quot;aerialLayerButton&quot;&gt;
+-            &lt;property name=&quot;visible&quot;&gt;True&lt;/property&gt;
+-            &lt;property name=&quot;can-focus&quot;&gt;True&lt;/property&gt;
+-            &lt;property name=&quot;action-name&quot;&gt;win.map-type&lt;/property&gt;
+-            &lt;property name=&quot;action-target&quot;&gt;&quot;AERIAL&quot;&lt;/property&gt;
+-            &lt;property name=&quot;draw-indicator&quot;&gt;False&lt;/property&gt;
+-            &lt;style&gt;
+-              &lt;class name=&quot;layer-radio-button&quot;/&gt;
+-            &lt;/style&gt;
+-            &lt;child&gt;
+-              &lt;object class=&quot;GtkImage&quot; id=&quot;aerialLayerImage&quot;&gt;
+-                &lt;property name=&quot;visible&quot;&gt;True&lt;/property&gt;
+-                &lt;property name=&quot;resource&quot;&gt;/org/gnome/Maps/ui/maptype-aerial.png&lt;/property&gt;
+-              &lt;/object&gt;
+-            &lt;/child&gt;
+-          &lt;/object&gt;
+-          &lt;packing&gt;
+-            &lt;property name=&quot;left-attach&quot;&gt;0&lt;/property&gt;
+-            &lt;property name=&quot;top-attach&quot;&gt;1&lt;/property&gt;
+-          &lt;/packing&gt;
+-        &lt;/child&gt;
+-        &lt;child&gt;
+           &lt;object class=&quot;GtkListBox&quot; id=&quot;layersListBox&quot;&gt;
+             &lt;property name=&quot;name&quot;&gt;layers-list-box&lt;/property&gt;
+             &lt;property name=&quot;visible&quot;&gt;false&lt;/property&gt;
+@@ -65,7 +21,7 @@
+           &lt;/object&gt;
+           &lt;packing&gt;
+             &lt;property name=&quot;left-attach&quot;&gt;0&lt;/property&gt;
+-            &lt;property name=&quot;top-attach&quot;&gt;2&lt;/property&gt;
++            &lt;property name=&quot;top-attach&quot;&gt;0&lt;/property&gt;
+           &lt;/packing&gt;
+         &lt;/child&gt;
+         &lt;child&gt;
+@@ -76,7 +32,7 @@
+           &lt;/object&gt;
+           &lt;packing&gt;
+             &lt;property name=&quot;left-attach&quot;&gt;0&lt;/property&gt;
+-            &lt;property name=&quot;top-attach&quot;&gt;3&lt;/property&gt;
++            &lt;property name=&quot;top-attach&quot;&gt;1&lt;/property&gt;
+           &lt;/packing&gt;
+         &lt;/child&gt;
+       &lt;/object&gt;
+diff --git a/src/layersPopover.js b/src/layersPopover.js
+index f37109f..ab20760 100644
+--- src/layersPopover.js
++++ src/layersPopover.js
+@@ -78,9 +78,7 @@ const LayersPopover = new Lang.Class({
+     Name: 'LayersPopover',
+     Extends: Gtk.Popover,
+     Template: 'resource:///org/gnome/Maps/ui/layers-popover.ui',
+-    InternalChildren: [ 'streetLayerButton',
+-                        'aerialLayerButton',
+-                        'layersListBox',
++    InternalChildren: [ 'layersListBox',
+                         'loadLayerButton' ],

+     _init: function(params) {
+@@ -92,8 +90,6 @@ const LayersPopover = new Lang.Class({
+                       transitions_enabled: false,
+                       visible: false });

+-        this._aerialLayerButton.join_group(this._streetLayerButton);
+-
+         this.get_style_context().add_class('maps-popover');

+         this._layersListBox.bind_model(this._mapView.shapeLayerStore,
+-- 
+2.8.1
</ins></span></pre></div>
<a id="usersdevansGNOME3stabledportsgnomegnomemapsfilespatchstopusingmapquesttilesdiff"></a>
<div class="addfile"><h4>Added: users/devans/GNOME-3/stable/dports/gnome/gnome-maps/files/patch-stop-using-mapquest-tiles.diff (0 => 150535)</h4>
<pre class="diff"><span>
<span class="info">--- users/devans/GNOME-3/stable/dports/gnome/gnome-maps/files/patch-stop-using-mapquest-tiles.diff                                (rev 0)
+++ users/devans/GNOME-3/stable/dports/gnome/gnome-maps/files/patch-stop-using-mapquest-tiles.diff        2016-07-21 02:52:57 UTC (rev 150535)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+From 47a2dbb02c71bd5be1bff7b295a03526dcbe5507 Mon Sep 17 00:00:00 2001
+From: Marcus Lundblad &lt;ml@update.uu.se&gt;
+Date: Wed, 22 Jun 2016 23:25:08 +0200
+Subject: [PATCH] mapView: Stop using MapQuest tiles
+
+Revert to using the standard OSM Mapnik tiles instead of MapQuest's
+tiles, as MapQuest will cease providing free tiles.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=764841
+---
+ src/mapView.js | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/mapView.js b/src/mapView.js
+index aa587da..09af348 100644
+--- src/mapView.js
++++ src/mapView.js
+@@ -47,7 +47,7 @@ const Utils = imports.utils;

+ const MapType = {
+     LOCAL: 'MapsLocalSource',
+-    STREET:  Champlain.MAP_SOURCE_OSM_MAPQUEST,
++    STREET:  Champlain.MAP_SOURCE_OSM_MAPNIK,
+     AERIAL:  Champlain.MAP_SOURCE_OSM_AERIAL_MAP,
+     CYCLING: Champlain.MAP_SOURCE_OSM_CYCLE_MAP,
+     TRANSIT: Champlain.MAP_SOURCE_OSM_TRANSPORT_MAP
+-- 
+2.8.1
</ins></span></pre>
</div>
</div>

</body>
</html>