source: subversion/applications/rendering/mapnik/inc/layer-amenity-stations.xml.inc @ 23352

Last change on this file since 23352 was 21750, checked in by ldp, 9 years ago

Remove type/width/height from symbolizers. No longer required in mapnik >= 0.7.1

File size: 3.3 KB
Line 
1<Style name="stations">
2    <Rule>
3      &maxscale_zoom12;
4      &minscale_zoom12;
5      <Filter>[railway]='station' and not [disused]='yes'</Filter>
6      <PointSymbolizer file="&symbols;/halt.png" />
7    </Rule>
8    <Rule>
9      &maxscale_zoom13;
10      &minscale_zoom14;
11      <Filter>[railway]='station' and not [disused]='yes'</Filter>
12      <PointSymbolizer file="&symbols;/station_small.png" />
13    </Rule>
14    <Rule>
15      &maxscale_zoom13;
16      <Filter>[railway]='station' and [disused]='yes'</Filter>
17      <PointSymbolizer file="&symbols;/station_disused.png" />
18    </Rule>
19    <Rule>
20      &maxscale_zoom15;
21      <Filter>[railway]='station' and not [disused]='yes'</Filter>
22      <PointSymbolizer file="&symbols;/station.png" />
23    </Rule>
24    <Rule>
25      &maxscale_zoom13;
26      &minscale_zoom14;
27      <Filter>[railway]='halt' or [railway]='tram_stop' or [aerialway]='station'</Filter>
28      <PointSymbolizer file="&symbols;/halt.png" />
29    </Rule>
30    <Rule>
31      &maxscale_zoom15;
32      <Filter>[railway]='halt' or [railway]='tram_stop' or [aerialway]='station'</Filter>
33      <PointSymbolizer file="&symbols;/station_small.png" />
34    </Rule>
35    <Rule>
36      &maxscale_zoom14;
37      &minscale_zoom14;
38      <Filter>[railway]='halt' or [railway]='tram_stop' or [aerialway]='station'</Filter>
39      <TextSymbolizer name="name" fontset_name="book-fonts" size="8" fill="#66f" dy="-8" halo_radius="1" wrap_width="0"/>
40    </Rule>
41    <Rule>
42      &maxscale_zoom15;
43      <Filter>[railway] ='halt' or [railway]='tram_stop' or [aerialway]='station'</Filter>
44      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#66f" dy="-10" halo_radius="1" wrap_width="0"/>
45    </Rule>
46    <Rule>
47      &maxscale_zoom14;
48      &minscale_zoom14;
49      <Filter>[railway]='station' and not [disused]='yes'</Filter>
50      <TextSymbolizer name="name" fontset_name="bold-fonts" size="9" fill="#66f" dy="-8" halo_radius="1" wrap_width="0"/>
51    </Rule>
52    <Rule>
53      &maxscale_zoom15;
54      <Filter>[railway]='station' and not [disused]='yes'</Filter>
55      <TextSymbolizer name="name" fontset_name="bold-fonts" size="11" fill="#66f" dy="-10" halo_radius="1" wrap_width="0"/>
56    </Rule>
57    <Rule>
58      &maxscale_zoom15;
59      <Filter>[railway]='station' and [disused]='yes'</Filter>
60      <TextSymbolizer name="name" fontset_name="bold-fonts" size="9" fill="grey" dy="-9" halo_radius="1" wrap_width="0"/>
61    </Rule>
62</Style>
63
64<Layer name="amenity-stations" status="on" srs="&osm2pgsql_projection;">
65    <StyleName>stations</StyleName>
66    <Datasource>
67      <Parameter name="table">
68      (select way,name,railway,aerialway,disused
69      from &prefix;_point
70      where railway in ('station','halt','tram_stop')
71         or aerialway='station'
72      ) as stations
73      </Parameter>
74      &datasource-settings;
75    </Datasource>
76</Layer>
77<Layer name="amenity-stations-poly" status="on" srs="&osm2pgsql_projection;">
78    <StyleName>stations</StyleName>
79    <Datasource>
80      <Parameter name="table">
81      (select way,name,railway,aerialway,disused
82      from &prefix;_polygon
83      where railway in ('station','halt','tram_stop')
84         or aerialway='station'
85      ) as stations
86      </Parameter>
87      &datasource-settings;
88    </Datasource>
89</Layer>
90
Note: See TracBrowser for help on using the repository browser.