source: subversion/applications/rendering/mapnik/inc/layer-buildings.xml.inc @ 23336

Last change on this file since 23336 was 21762, checked in by ldp, 9 years ago

Redo/restore ordering: sports_grounds/stadium -> track -> pitch

File size: 2.6 KB
Line 
1<Style name="buildings">
2    <Rule>
3      <Filter>[railway] = 'station' or [building] = 'station'</Filter>
4      &maxscale_zoom10;
5     <PolygonSymbolizer>
6         <CssParameter name="fill">#d4aaaa</CssParameter>
7     </PolygonSymbolizer>
8    </Rule>
9    <Rule>
10      <Filter>[building] = 'supermarket'</Filter>
11      &maxscale_zoom10;
12      <PolygonSymbolizer>
13         <CssParameter name="fill">pink</CssParameter>
14         <CssParameter name="fill-opacity">0.5</CssParameter>
15      </PolygonSymbolizer>
16    </Rule>
17    <Rule>
18      <Filter>[amenity] = 'place_of_worship'</Filter>
19      &maxscale_zoom10;
20      &minscale_zoom14;
21      <PolygonSymbolizer>
22         <CssParameter name="fill">#777</CssParameter>
23         <CssParameter name="fill-opacity">0.5</CssParameter>
24      </PolygonSymbolizer>
25    </Rule>
26    <Rule>
27      <Filter>[amenity] = 'place_of_worship'</Filter>
28      &maxscale_zoom15;
29      <PolygonSymbolizer>
30         <CssParameter name="fill">#777</CssParameter>
31         <CssParameter name="fill-opacity">0.5</CssParameter>
32      </PolygonSymbolizer>
33      <LineSymbolizer>
34        <CssParameter name="stroke">#111</CssParameter>
35        <CssParameter name="stroke-width">0.3</CssParameter>
36      </LineSymbolizer>
37    </Rule>
38    <Rule>
39      <Filter>[building] &lt;&gt; 'station' and [building] &lt;&gt; 'supermarket' and [building] &lt;&gt; '' and (not [amenity] &lt;&gt; '' or [amenity] &lt;&gt; 'place_of_worship')</Filter>
40      &maxscale_zoom10;
41      <PolygonSymbolizer>
42         <CssParameter name="fill">#bca9a9</CssParameter>
43      </PolygonSymbolizer>
44    </Rule>
45    <Rule>
46      <Filter>[aeroway] = 'terminal'</Filter>
47      &maxscale_zoom12;
48      <PolygonSymbolizer>
49         <CssParameter name="fill">#cc99ff</CssParameter>
50      </PolygonSymbolizer>
51    </Rule>
52    <Rule>
53      <Filter>[aeroway] = 'terminal'</Filter>
54      &maxscale_zoom14;
55      <LineSymbolizer>
56        <CssParameter name="stroke">#330066</CssParameter>
57        <CssParameter name="stroke-width">0.2</CssParameter>
58      </LineSymbolizer>
59    </Rule>
60</Style>
61
62<Layer name="buildings" status="on" srs="&osm2pgsql_projection;">
63    <StyleName>buildings</StyleName>
64    <Datasource>
65      <Parameter name="table">
66      (select way,building,leisure,railway,amenity,aeroway from &prefix;_polygon
67       where (building is not null and building != 'no')
68          or railway='station'
69          or amenity='place_of_worship'
70          or aeroway='terminal'
71       order by z_order,way_area desc) as buildings
72      </Parameter>
73      &datasource-settings;
74    </Datasource>
75</Layer>
76
Note: See TracBrowser for help on using the repository browser.