source: subversion/applications/rendering/nor-hikingmap/layer-nationalpark.xml.ent @ 29168

Last change on this file since 29168 was 27673, checked in by vibrog, 8 years ago

Separate rule for nature area fill

File size: 2.1 KB
Line 
1
2<Style name="nationalpark">
3    <Rule>
4      <Filter>[boundary] = 'national_park' or [leisure] = 'nature_reserve'</Filter>
5      &maxscale_zoom7;
6      &minscale_zoom12;
7      <PolygonSymbolizer>
8        <CssParameter name="fill">&naturearea-color;</CssParameter>
9        <CssParameter name="fill-opacity">0.05</CssParameter>
10      </PolygonSymbolizer>
11    </Rule>
12    <Rule>
13      <Filter>[boundary] = 'national_park' or [leisure] = 'nature_reserve'</Filter>
14      &maxscale_zoom7;
15      &minscale_zoom9;
16      <LineSymbolizer>
17        <CssParameter name="stroke">&naturearea-color;</CssParameter>
18        <CssParameter name="stroke-width">0.75</CssParameter>
19        <CssParameter name="stroke-dasharray">4,2</CssParameter>
20        <CssParameter name="stroke-opacity">0.5</CssParameter>
21      </LineSymbolizer>
22    </Rule>
23    <Rule>
24      &maxscale_zoom10;
25      &minscale_zoom18;
26      <LineSymbolizer>
27        <CssParameter name="stroke">&naturearea-color;</CssParameter>
28        <CssParameter name="stroke-width">1.5</CssParameter>
29        <CssParameter name="stroke-dasharray">6,2</CssParameter>
30        <CssParameter name="stroke-opacity">0.5</CssParameter>
31      </LineSymbolizer>
32    </Rule>
33    <Rule>
34      &maxscale_zoom8;
35      &minscale_zoom9;
36      <Filter>[way_area] &gt;= 25000000</Filter>
37      <TextSymbolizer name="name" fontset_name="bold-fonts"
38        size="8" dy="-8" fill="#9c9" halo_radius="1" wrap_width="14"/>
39    </Rule>
40    <Rule>
41      &maxscale_zoom10;
42      &minscale_zoom11;
43      <Filter>[way_area] &gt;= 25000000</Filter>
44      <TextSymbolizer name="name" fontset_name="bold-fonts"
45        size="11" fill="#9c9" halo_radius="1" wrap_width="14"/>
46    </Rule>
47</Style>
48
49<Layer name="nationalpark" status="on" srs="&osm2pgsql_projection;">
50    <StyleName>nationalpark</StyleName>
51    <Datasource>
52      <Parameter name="table">
53      (select way,boundary,leisure,name,way_area
54       from &prefix;_polygon
55       where boundary in ('national_park','protected_area')
56          or leisure='nature_reserve'
57      ) as nationalpark
58      </Parameter>
59      &datasource-settings;
60    </Datasource>
61</Layer>
Note: See TracBrowser for help on using the repository browser.