first working version of our overlay style: this now draws bicycle parking and lectur...
authorosm@osm.rrze <osm@osm.rrze.uni-erlangen.de>
Sat, 11 Aug 2012 11:57:56 +0000 (13:57 +0200)
committerosm@osm.rrze <osm@osm.rrze.uni-erlangen.de>
Sat, 11 Aug 2012 11:57:56 +0000 (13:57 +0200)
styles/mapnik-osm-data/rrze-overlay.xml

index d8841c0d634123da29bbb7c62169bf7980b42f17..d3aa759ae46039ede975dacd7d9215711ddc237d 100644 (file)
       &maxscale_zoom17;
       <TextSymbolizer size="9" fill="#0066ff" dy="9" fontset-name="book-fonts" halo-radius="1" wrap-width="34" placement="interior">[name]</TextSymbolizer>
     </Rule>
+    <Rule>
+      <Filter>[campusbuilding]='lecture hall'</Filter>
+      &maxscale_zoom17;
+      <TextSymbolizer size="9" fill="#006600" fontset-name="book-fonts" halo-radius="1" wrap-width="34" placement="interior">[nameshort]</TextSymbolizer>
+    </Rule>
 </Style>
 
 <Style name="points">
     <StyleName>text</StyleName>
     <Datasource>
       <Parameter name="table">
-      (select way,amenity,access,name,ref,'yes'::text as point
+      (select way,amenity,access,name,tags->'campusbuilding' as campusbuilding,tags->'name:short' as nameshort,ref,'yes'::text as point
        from &prefix;_point
        where amenity is not null
+       or tags is not null
       ) as text
       </Parameter>
       &datasource-settings;
     <StyleName>text</StyleName>
     <Datasource>
       <Parameter name="table">
-      (select way,access,amenity,NULL as ele,name,ref,'no'::text as point
+      (select way,access,amenity,NULL as ele,name,tags->'campusbuilding' as campusbuilding,tags->'name:short' as nameshort,ref,'no'::text as point
        from &prefix;_polygon
        where amenity is not null
+       or tags is not null
       ) as text
       </Parameter>
       &datasource-settings;
This page took 0.111371 seconds and 4 git commands to generate.