From 6938034edd9b99559c4d0a37b0bab7d95761193f Mon Sep 17 00:00:00 2001
From: David MENTRE <dmentre@linux-france.org>
Date: Wed, 11 Apr 2012 12:29:38 +0200
Subject: [PATCH] Document and provide a patch on MapQuest stylesheet

Signed-off-by: David MENTRE <dmentre@linux-france.org>
---
 INSTALL                         |    9 +++++-
 support/mapquest-gael-fix.patch |   56 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+), 1 deletions(-)
 create mode 100644 support/mapquest-gael-fix.patch

diff --git a/INSTALL b/INSTALL
index 620a717..a53fb7a 100644
--- a/INSTALL
+++ b/INSTALL
@@ -309,11 +309,18 @@ First, grab the MapQuest stylesheets:
 
  git clone git://github.com/MapQuest/MapQuest-Mapnik-Style.git
 
- (version tested: 9d6c5503194c58fc1f9f760b4e5af8a1602dfb30)
+ (tested versions:
+     9d6c5503194c58fc1f9f760b4e5af8a1602dfb30
+     6f7ea2723c07a1db2d17c2336dd3a0b3dd2d6fe9)
 
 Go into the MapQuest-Mapnik-Style directory, in which we will do all
 the configuration.
 
+With above tested version, there is a bug in the stylesheet. That should
+be fixed using a patch provided in the support/ directory.
+
+ patch -p1 < /path/to/ocitysmap/support/mapquest-gael-fix.patch
+
 First, those stylesheets require the same "world boundaries"
 information as the original OSM stylesheet, so we are going to share
 these informations by creating a symbolic link:
diff --git a/support/mapquest-gael-fix.patch b/support/mapquest-gael-fix.patch
new file mode 100644
index 0000000..5349500
--- /dev/null
+++ b/support/mapquest-gael-fix.patch
@@ -0,0 +1,56 @@
+commit c72ad2936e64b98f0182118424c64539d7ea84f0
+Author: Gael UTARD <gael.utard@kisis.fr>
+Date:   Fri Mar 30 19:22:43 2012 +0200
+
+    Fixed a mix-up between minscale and maxscale
+
+diff --git a/mapquest_inc/layer-transportation-eu.xml.inc b/mapquest_inc/layer-transportation-eu.xml.inc
+index efd7203..8784626 100755
+--- a/mapquest_inc/layer-transportation-eu.xml.inc
++++ b/mapquest_inc/layer-transportation-eu.xml.inc
+@@ -49,19 +49,19 @@
+ 	<Rule>
+ 		<Filter>[aeroway] = 'runway'</Filter>
+ 		&maxscale_zoom12;
+-		&maxscale_zoom12;
++		&minscale_zoom12;
+ 		<LineSymbolizer stroke="#b4b4b4" stroke-width="3"/>
+ 	</Rule>
+ 	<Rule>
+ 		<Filter>[aeroway] = 'runway'</Filter>
+ 		&maxscale_zoom13;
+-		&maxscale_zoom14;
++		&minscale_zoom14;
+ 		<LineSymbolizer stroke="#b4b4b4" stroke-width="5"/>
+ 	</Rule>
+ 	<Rule>
+ 		<Filter>[aeroway] = 'runway'</Filter>
+ 		&maxscale_zoom15;
+-		&maxscale_zoom16;
++		&minscale_zoom16;
+ 		<LineSymbolizer stroke="#b4b4b4" stroke-width="15"/>
+ 	</Rule>
+ 	<Rule>
+@@ -72,19 +72,19 @@
+ 	<Rule>
+ 		<Filter>[aeroway] = 'taxiway'</Filter>
+ 		&maxscale_zoom12;
+-		&maxscale_zoom12;
++		&minscale_zoom12;
+ 		<LineSymbolizer stroke="#b4b4b4" stroke-width="1"/>
+ 	</Rule>
+ 	<Rule>
+ 		<Filter>[aeroway] = 'taxiway'</Filter>
+ 		&maxscale_zoom13;
+-		&maxscale_zoom14;
++		&minscale_zoom14;
+ 		<LineSymbolizer stroke="#b4b4b4" stroke-width="2"/>
+ 	</Rule>
+ 	<Rule>
+ 		<Filter>[aeroway] = 'taxiway'</Filter>
+ 		&maxscale_zoom15;
+-		&maxscale_zoom16;
++		&minscale_zoom16;
+ 		<LineSymbolizer stroke="#b4b4b4" stroke-width="5"/>
+ 	</Rule>
+ 	<Rule>
-- 
1.7.5.4

