&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;