* 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 <[email protected]>
Signed-off-by: Sylvain Collilieux <[email protected]>
---
 stylesheet/black-and-white/osm.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/stylesheet/black-and-white/osm.xml 
b/stylesheet/black-and-white/osm.xml
index d4bd11c..8279da9 100644
--- a/stylesheet/black-and-white/osm.xml
+++ b/stylesheet/black-and-white/osm.xml
@@ -1611,7 +1611,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>
@@ -1648,7 +1648,7 @@
       <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>
       <ElseFilter/>
-- 
1.7.5.4


Reply via email to