Ticket #4191: layer-placenames.xml.inc

File layer-placenames.xml.inc, 8.0 KB (added by Yarl, 6 years ago)

neighbourhood added

Line 
1<Style name="continent">
2    <Rule>
3      <Filter>[place] = 'continent'</Filter>
4      &maxscale_zoom1;
5      &minscale_zoom2;
6      <TextSymbolizer size="10" fill="#9d6c9d" dy="0" fontset-name="book-fonts" halo-radius="1" wrap-width="20">[name]</TextSymbolizer>
7    </Rule>
8</Style>
9<Style name="country">
10    <Rule>
11      <Filter>[place] = 'country'</Filter>
12      &maxscale_zoom2;
13      &minscale_zoom3;
14      <TextSymbolizer size="8" fill="#9d6c9d" dy="0" fontset-name="book-fonts" halo-radius="1" wrap-width="20">[name]</TextSymbolizer>
15    </Rule>
16    <Rule>
17      <Filter>[place] = 'country'</Filter>
18      &maxscale_zoom4;
19      &minscale_zoom6;
20      <TextSymbolizer size="10" fill="#9d6c9d" dy="0" fontset-name="book-fonts" halo-radius="1" wrap-width="20">[name]</TextSymbolizer>
21    </Rule>
22</Style>
23<Style name="state">
24    <Rule>
25      <Filter>[place] = 'state'</Filter>
26      &maxscale_zoom4;
27      &minscale_zoom4;
28      <TextSymbolizer size="9" fill="#9d6c9d" dy="0" fontset-name="oblique-fonts" halo-radius="1" wrap-width="0">[ref]</TextSymbolizer>
29    </Rule>
30    <Rule>
31      <Filter>[place] = 'state'</Filter>
32      &maxscale_zoom5;
33      &minscale_zoom6;
34      <TextSymbolizer size="9" fill="#9d6c9d" dy="0" fontset-name="oblique-fonts" halo-radius="1" wrap-width="0">[name]</TextSymbolizer>
35    </Rule>
36    <Rule>
37      <Filter>[place] = 'state'</Filter>
38      &maxscale_zoom7;
39      &minscale_zoom8;
40      <TextSymbolizer size="11" fill="#9d6c9d" dy="0" fontset-name="oblique-fonts" halo-radius="1" wrap-width="0">[name]</TextSymbolizer>
41    </Rule>
42</Style>
43<Style name="capital">
44     <Rule>
45      &maxscale_zoom5;
46      &minscale_zoom5;
47      <TextSymbolizer size="9" fill="#000" dy="0" fontset-name="book-fonts" halo-radius="1" wrap-width="0">[name]</TextSymbolizer>
48    </Rule>
49    <Rule>
50      &maxscale_zoom6;
51      &minscale_zoom8;
52      <TextSymbolizer size="11" fill="#000" dy="0" fontset-name="book-fonts" halo-radius="1" wrap-width="0">[name]</TextSymbolizer>
53    </Rule>
54    <Rule>
55      &maxscale_zoom9;
56      &minscale_zoom10;
57      <TextSymbolizer size="11" fill="#000" dy="0" fontset-name="book-fonts" halo-radius="1" wrap-width="0">[name]</TextSymbolizer>
58    </Rule>
59    <Rule>
60      &maxscale_zoom11;
61      &minscale_zoom14;
62      <TextSymbolizer size="14" fill="#000" dy="0" fontset-name="book-fonts" halo-radius="1" wrap-width="0">[name]</TextSymbolizer>
63    </Rule>
64</Style>
65<Style name="city">
66    <Rule>
67      <Filter>[place] = 'city' or [place]='metropolis'</Filter>
68      &maxscale_zoom6;
69      &minscale_zoom8;
70      <TextSymbolizer size="8" fill="#000" dy="0" fontset-name="book-fonts" halo-radius="1" wrap-width="0">[name]</TextSymbolizer>
71    </Rule>
72    <Rule>
73      <Filter>[place] = 'city' or [place]='metropolis'</Filter>
74      &maxscale_zoom9;
75      &minscale_zoom10;
76      <TextSymbolizer size="11" fill="#000" dy="0" fontset-name="book-fonts" halo-radius="1" wrap-width="0">[name]</TextSymbolizer>
77    </Rule>
78    <Rule>
79      <Filter>[place] = 'city' or [place]='metropolis'</Filter>
80      &maxscale_zoom11;
81      &minscale_zoom14;
82      <TextSymbolizer size="14" fill="#000" dy="0" fontset-name="book-fonts" halo-radius="1" wrap-width="0">[name]</TextSymbolizer>
83    </Rule>
84</Style>
85<Style name="town">
86    <Rule>
87      <Filter>[place] = 'town' or [place]='large_town' or [place]='small_town'</Filter>
88      &maxscale_zoom9;
89      &minscale_zoom10;
90      <TextSymbolizer size="8" fill="#000" fontset-name="book-fonts" halo-radius="1" wrap-width="20">[name]</TextSymbolizer>
91    </Rule>
92    <Rule>
93      <Filter>[place] = 'town' or [place]='large_town' or [place]='small_town'</Filter>
94      &maxscale_zoom11;
95      &minscale_zoom13;
96      <TextSymbolizer size="10" fill="#000" fontset-name="book-fonts" halo-radius="1" wrap-width="20">[name]</TextSymbolizer>
97    </Rule>
98    <Rule>
99      <Filter>[place] = 'town' or [place]='large_town' or [place]='small_town'</Filter>
100      &maxscale_zoom14;
101      <TextSymbolizer size="14" fill="#777777" fontset-name="book-fonts" halo-radius="1" wrap-width="20">[name]</TextSymbolizer>
102    </Rule>
103</Style>
104<Style name="suburb">
105    <Rule>
106      <Filter>[place] = 'suburb'</Filter>
107      &maxscale_zoom12;
108      &minscale_zoom13;
109      <TextSymbolizer size="10" fill="#000" fontset-name="book-fonts" halo-radius="1" wrap-width="0">[name]</TextSymbolizer>
110    </Rule>
111    <Rule>
112      <Filter>[place] = 'suburb'</Filter>
113      &maxscale_zoom14;
114      <TextSymbolizer size="13" fill="#777777" fontset-name="book-fonts" halo-radius="1" wrap-width="0">[name]</TextSymbolizer>
115    </Rule>
116</Style>
117<Style name="neighbourhood">
118    <Rule>
119      <Filter>[place] = 'neighbourhood'</Filter>
120      &maxscale_zoom13;
121      &minscale_zoom14;
122      <TextSymbolizer size="9" fill="#000" fontset-name="book-fonts" halo-radius="1" wrap-width="0">[name]</TextSymbolizer>
123    </Rule>
124    <Rule>
125      <Filter>[place] = 'neighbourhood'</Filter>
126      &maxscale_zoom15;
127      <TextSymbolizer size="12" fill="#777777" fontset-name="book-fonts" halo-radius="1" wrap-width="0">[name]</TextSymbolizer>
128    </Rule>
129</Style>
130<Style name="village">
131    <Rule>
132      <Filter>[place] = 'village' or [place]='large_village'</Filter>
133      &maxscale_zoom12;
134      &minscale_zoom14;
135      <TextSymbolizer size="9" fill="#000" fontset-name="book-fonts" halo-radius="1" wrap-width="0">[name]</TextSymbolizer>
136    </Rule>
137    <Rule>
138      <Filter>[place] = 'village' or [place]='large_village'</Filter>
139      &maxscale_zoom15;
140      <TextSymbolizer size="12" fill="#777777" fontset-name="book-fonts" halo-radius="1" wrap-width="0">[name]</TextSymbolizer>
141    </Rule>
142</Style>
143<Style name="hamlet">
144    <Rule>
145      <Filter>[place] = 'hamlet' or [place] = 'locality' or [place] = 'isolated_dwelling' or [place] = 'farm'</Filter>
146      &maxscale_zoom14;
147      &minscale_zoom15;
148      <TextSymbolizer size="8" fill="#000" fontset-name="book-fonts" halo-radius="1" wrap-width="0">[name]</TextSymbolizer>
149    </Rule>
150    <Rule>
151      <Filter>[place] = 'hamlet' or [place] = 'locality' or [place] = 'isolated_dwelling' or [place] = 'farm'</Filter>
152      &maxscale_zoom16;
153      <TextSymbolizer size="11" fill="#777777" fontset-name="book-fonts" halo-radius="1" wrap-width="0">[name]</TextSymbolizer>
154    </Rule>
155</Style>
156
157<Layer name="placenames-large" status="on" srs="&osm2pgsql_projection;">
158    <StyleName>country</StyleName>
159    <StyleName>state</StyleName>
160    <Datasource>
161      <Parameter name="table">
162      (select way,place,name,ref
163       from &prefix;_point
164       where place in ('country','state')
165      ) as placenames</Parameter>
166      &datasource-settings;
167    </Datasource>
168</Layer>
169<Layer name="placenames-capital" status="on" srs="&osm2pgsql_projection;">
170    <StyleName>capital</StyleName>
171    <Datasource>
172      <Parameter name="table">
173      (select way,place,name,ref
174       from &prefix;_point
175       where place in ('city','metropolis','town') and capital='yes'
176      ) as placenames</Parameter>
177      &datasource-settings;
178    </Datasource>
179</Layer>
180<Layer name="placenames-medium" status="on" srs="&osm2pgsql_projection;">
181    <StyleName>city</StyleName>
182    <StyleName>town</StyleName>
183    <Datasource>
184      <Parameter name="table">
185      (select way,place,name
186      from &prefix;_point
187      where place in ('city','metropolis','town','large_town','small_town')
188        and (capital is null or capital != 'yes')
189      ) as placenames</Parameter>
190      &datasource-settings;
191    </Datasource>
192</Layer>
193<Layer name="placenames-small" status="on" srs="&osm2pgsql_projection;">
194    <StyleName>suburb</StyleName>
195        <StyleName>neighbourhood</StyleName>
196    <StyleName>village</StyleName>
197    <StyleName>hamlet</StyleName>
198    <Datasource>
199      <Parameter name="table">
200      (select way,place,name
201      from &prefix;_point
202      where place in ('suburb','village','large_village','neighbourhood','hamlet','locality','isolated_dwelling','farm')
203      ) as placenames</Parameter>
204      &datasource-settings;
205    </Datasource>
206</Layer>
207