-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayer-nationalpark.xml.ent
48 lines (46 loc) · 1.49 KB
/
layer-nationalpark.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
41
42
43
44
45
46
47
48
<Style name="nationalpark">
<Rule>
&maxscale_zoom7;
&minscale_zoom9;
<Filter>[way_area] >= 25000000</Filter>
<LineSymbolizer>
<CssParameter name="stroke">&border-naturereserve-color;</CssParameter>
<CssParameter name="stroke-width">0.5</CssParameter>
</LineSymbolizer>
</Rule>
<Rule>
&maxscale_zoom10;
&minscale_zoom18;
<LineSymbolizer>
<CssParameter name="stroke">&border-naturereserve-color;</CssParameter>
<CssParameter name="stroke-width">0.75</CssParameter>
</LineSymbolizer>
</Rule>
<Rule>
&maxscale_zoom8;
&minscale_zoom9;
<Filter>[way_area] >= 100000000</Filter>
<TextSymbolizer name="name" fontset_name="bold-fonts"
size="8" dy="-8" fill="#9c9" halo_radius="1" wrap_width="14"/>
</Rule>
<Rule>
&maxscale_zoom10;
&minscale_zoom11;
<Filter>[way_area] >= 50000000</Filter>
<TextSymbolizer name="name" fontset_name="bold-fonts"
size="11" fill="#9c9" halo_radius="1" wrap_width="14"/>
</Rule>
</Style>
<Layer name="nationalpark" status="on" srs="&osm2pgsql_projection;">
<StyleName>nationalpark</StyleName>
<Datasource>
<Parameter name="table">
(select way,boundary,leisure,name,way_area
from &prefix;_polygon
where boundary in ('national_park','protected_area')
or leisure='nature_reserve'
) as nationalpark
</Parameter>
&datasource-settings;
</Datasource>
</Layer>