-
Notifications
You must be signed in to change notification settings - Fork 1
/
layer-text-water.xml.ent
40 lines (39 loc) · 1.6 KB
/
layer-text-water.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
38
39
40
<Style name="water_text">
<Rule>
<Filter>[way_area] >= 4000000</Filter>
&maxscale_zoom12;
<TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="&waterline-color;" halo_radius="1" wrap_width="20"/>
</Rule>
<Rule>
<Filter>[way_area] >= 700000 and [way_area] < 4000000</Filter>
&maxscale_zoom13;
<TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="&waterline-color;" halo_radius="1" wrap_width="20"/>
</Rule>
<Rule>
<Filter>[way_area] >= 120000 and [way_area] < 700000</Filter>
&maxscale_zoom14;
<TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="&waterline-color;" halo_radius="1" wrap_width="20"/>
</Rule>
<Rule>
<Filter>[way_area] >= 20000 and [way_area] < 120000</Filter>
&maxscale_zoom15;
<TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="&waterline-color;" 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="&waterline-color;" halo_radius="1" wrap_width="20"/>
</Rule>
</Style>
<Layer name="water_text" status="on" srs="&osm2pgsql_projection;">
<StyleName>water_text</StyleName>
<Datasource>
<Parameter name="table">
(select way,"natural",landuse,waterway,name,way_area,'no'::text as point
from &prefix;_polygon
where "natural" in ('water','lake','pond','bay','wetland','glacier')
or landuse in ('reservoir','basin','water')
) as text</Parameter>
&datasource-settings;
</Datasource>
</Layer>