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

Last change on this file since 22524 was 22524, checked in by vibrog, 9 years ago

No text on small nature reserves

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