[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH 9/9] b&w stylesheet: Allow smaller fonts for str
From: |
David MENTRE |
Subject: |
[Maposmatic-dev] [PATCH 9/9] b&w stylesheet: Allow smaller fonts for street names |
Date: |
Fri, 30 Mar 2012 17:59:29 +0200 |
* Use advanced features of Mapnik2's TextSymbolizer to reduce size of
street names if possible. This allows to display more street names,
even if all of them are not displayed.
Signed-off-by: David MENTRE <address@hidden>
---
stylesheet/black-and-white/osm.xml | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/stylesheet/black-and-white/osm.xml
b/stylesheet/black-and-white/osm.xml
index 828497e..a30779f 100644
--- a/stylesheet/black-and-white/osm.xml
+++ b/stylesheet/black-and-white/osm.xml
@@ -3139,7 +3139,7 @@
<Rule>
<Filter>([highway] = 'unclassified' or [highway]='residential') and not
[bridge]='yes'</Filter>
&maxscale_zoom15;
- <TextSymbolizer size="10" fill="#000" spacing="750"
minimum-distance="18" fontset-name="bold-fonts"
halo-radius="1">[ref]</TextSymbolizer>
+ <TextSymbolizer size="10" fill="#000" spacing="750"
minimum-distance="18" fontset-name="bold-fonts" halo-radius="1"
placement-type="simple" max-char-angle-delta="40" placements="X,10,9,8,7,6,5,4"
avoid-edges="false">[ref]</TextSymbolizer>
</Rule>
<Rule>
<Filter>([aeroway] = 'runway' or [aeroway]='taxiway') and not
[bridge]='yes'</Filter>
@@ -3211,25 +3211,25 @@
<Filter>[highway] = 'unclassified' or [highway] = 'residential'</Filter>
&maxscale_zoom15;
&minscale_zoom15;
- <TextSymbolizer size="8" fill="#000" spacing="300" placement="line"
fontset-name="book-fonts" halo-radius="1">[name]</TextSymbolizer>
+ <TextSymbolizer size="8" fill="#000" spacing="300" placement="line"
fontset-name="book-fonts" halo-radius="1" placement-type="simple"
max-char-angle-delta="40" placements="X,8,7,6,5,4"
avoid-edges="false">[name]</TextSymbolizer>
</Rule>
<Rule>
<Filter>[highway] = 'unclassified' or [highway] = 'residential'</Filter>
&maxscale_zoom16;
&minscale_zoom16;
- <TextSymbolizer size="9" fill="#000" spacing="300" placement="line"
fontset-name="book-fonts" halo-radius="1">[name]</TextSymbolizer>
+ <TextSymbolizer size="9" fill="#000" spacing="300" placement="line"
fontset-name="book-fonts" halo-radius="1" placement-type="simple"
max-char-angle-delta="40" placements="X,9,8,7,6,5,4"
avoid-edges="false">[name]</TextSymbolizer>
</Rule>
<Rule>
<Filter>[highway] = 'unclassified' or [highway] = 'residential'</Filter>
&maxscale_zoom17;
&minscale_zoom18;
- <TextSymbolizer size="11" fill="#000" spacing="400" placement="line"
fontset-name="book-fonts" halo-radius="1">[name]</TextSymbolizer>
+ <TextSymbolizer size="11" fill="#000" spacing="400" placement="line"
fontset-name="book-fonts" halo-radius="1" placement-type="simple"
max-char-angle-delta="40" placements="X,11,10,9,8,7,6,5,4"
avoid-edges="false">[name]</TextSymbolizer>
</Rule>
<Rule>
<ElseFilter/>
&maxscale_zoom15;
&minscale_zoom16;
- <TextSymbolizer size="9" fill="#000" placement="line"
fontset-name="book-fonts" halo-radius="1">[name]</TextSymbolizer>
+ <TextSymbolizer size="9" fill="#000" placement="line"
fontset-name="book-fonts" halo-radius="1" placement-type="simple"
max-char-angle-delta="40" placements="X,9,8,7,6,5,4"
avoid-edges="false">[name]</TextSymbolizer>
</Rule>
<Rule>
<ElseFilter/>
--
1.7.5.4
- [Maposmatic-dev] [PATCH 1/9] B&W stylesheet: restore original mapnik-osm stylesheet, David MENTRE, 2012/03/30
- [Maposmatic-dev] [PATCH 3/9] b&w stylesheet: display townhall, public_building, etc. amenities, David MENTRE, 2012/03/30
- [Maposmatic-dev] [PATCH 5/9] b&w stylesheet: remove landuse=residential coloring, David MENTRE, 2012/03/30
- [Maposmatic-dev] [PATCH 2/9] b&w stylesheet: remove building and power layers, David MENTRE, 2012/03/30
- [Maposmatic-dev] [PATCH 8/9] b&w stylesheet: put parking and residential area casing in black, David MENTRE, 2012/03/30
- [Maposmatic-dev] [PATCH 7/9] b&w stylesheet: increase casing of motorway, trunk, primary and secondary roads at zoom levels 15 to 18, David MENTRE, 2012/03/30
- [Maposmatic-dev] [PATCH 6/9] b&w stylesheet: put public buildings in black with light grey background, David MENTRE, 2012/03/30
- [Maposmatic-dev] [PATCH 9/9] b&w stylesheet: Allow smaller fonts for street names,
David MENTRE <=
- [Maposmatic-dev] [PATCH 4/9] b&w stylesheet: put all roads in black and white, David MENTRE, 2012/03/30
- Re: [Maposmatic-dev] [PATCH 1/9] B&W stylesheet: restore original mapnik-osm stylesheet, Thomas Petazzoni, 2012/03/30