kopia lustrzana https://github.com/hholzgra/ocitysmap
Document and provide a patch on MapQuest stylesheet
[Thomas: add similar fix for UK stylesheet] Signed-off-by: David MENTRE <dmentre@linux-france.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>stable
rodzic
66bcc1d43b
commit
4258c6973d
10
INSTALL
10
INSTALL
|
|
@ -309,11 +309,19 @@ 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-stylesheet-eu-fix.patch
|
||||
patch -p1 < /path/to/ocitysmap/support/mapquest-stylesheet-uk-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:
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
From 18a0198983b30f45a0c2723d4444ff4f434ceca2 Mon Sep 17 00:00:00 2001
|
||||
From: David MENTRE <dmentre@linux-france.org>
|
||||
Date: Wed, 11 Apr 2012 17:13:15 +0200
|
||||
Subject: [PATCH] Fix scale errors in UK style sheet
|
||||
|
||||
Signed-off-by: David MENTRE <dmentre@linux-france.org>
|
||||
---
|
||||
mapquest_inc/layer-transportation-uk.xml.inc | 12 ++++++------
|
||||
1 files changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/mapquest_inc/layer-transportation-uk.xml.inc b/mapquest_inc/layer-transportation-uk.xml.inc
|
||||
index 84999a0..9a571d7 100755
|
||||
--- a/mapquest_inc/layer-transportation-uk.xml.inc
|
||||
+++ b/mapquest_inc/layer-transportation-uk.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
|
||||
|
||||
Ładowanie…
Reference in New Issue