maposmatic-dev
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]