-
Notifications
You must be signed in to change notification settings - Fork 0
/
layer-textareas.xml.ent
37 lines (36 loc) · 1.34 KB
/
layer-textareas.xml.ent
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<Style name="area-text">
<Rule>
<Filter>[way_area] >= 150000</Filter>
&maxscale_zoom13;
<TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#000000" halo_radius="1" wrap_width="20"/>
</Rule>
<Rule>
<Filter>[way_area] >= 80000 and [way_area] < 150000</Filter>
&maxscale_zoom14;
<TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#000000" halo_radius="1" wrap_width="20"/>
</Rule>
<Rule>
<Filter>[way_area] >= 20000 and [way_area] < 80000</Filter>
&maxscale_zoom15;
<TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#000000" halo_radius="1" wrap_width="20"/>
</Rule>
<Rule>
<Filter>[way_area] < 20000</Filter>
&maxscale_zoom16;
<TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#000000" halo_radius="1" wrap_width="20"/>
</Rule>
</Style>
<Layer name="area-text" status="on" srs="&osm2pgsql_projection;">
<StyleName>area-text</StyleName>
<Datasource>
<Parameter name="table">
(select way,way_area,name
from &prefix;_polygon
where name is not null
and (waterway is null or waterway <> 'riverbank')
order by z_order,way_area desc
) as text
</Parameter>
&datasource-settings;
</Datasource>
</Layer>