-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlayer-nationalpark.xml.ent
61 lines (59 loc) · 2.09 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
49
50
51
52
53
54
55
56
57
58
59
60
61
<Style name="nationalpark">
<Rule>
<Filter>[boundary] = 'national_park' or [leisure] = 'nature_reserve'</Filter>
&maxscale_zoom7;
&minscale_zoom12;
<PolygonSymbolizer>
<CssParameter name="fill">&naturearea-color;</CssParameter>
<CssParameter name="fill-opacity">0.05</CssParameter>
</PolygonSymbolizer>
</Rule>
<Rule>
<Filter>[boundary] = 'national_park' or [leisure] = 'nature_reserve'</Filter>
&maxscale_zoom7;
&minscale_zoom9;
<LineSymbolizer>
<CssParameter name="stroke">&naturearea-color;</CssParameter>
<CssParameter name="stroke-width">0.75</CssParameter>
<CssParameter name="stroke-dasharray">4,2</CssParameter>
<CssParameter name="stroke-opacity">0.5</CssParameter>
</LineSymbolizer>
</Rule>
<Rule>
&maxscale_zoom10;
&minscale_zoom18;
<LineSymbolizer>
<CssParameter name="stroke">&naturearea-color;</CssParameter>
<CssParameter name="stroke-width">1.5</CssParameter>
<CssParameter name="stroke-dasharray">6,2</CssParameter>
<CssParameter name="stroke-opacity">0.5</CssParameter>
</LineSymbolizer>
</Rule>
<Rule>
&maxscale_zoom8;
&minscale_zoom9;
<Filter>[way_area] >= 25000000</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] >= 25000000</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>