source: subversion/applications/rendering/nor-hikingmap/layer-areanames.xml.ent @ 34655

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

Change text view for natural=peak

File size: 1.5 KB
Line 
1<Style name="area-text">
2    <Rule>
3      <Filter>[way_area] &gt;= 150000</Filter>
4      &maxscale_zoom13;
5      <TextSymbolizer name="name" fontset_name="book-fonts" size="10"
6        fill="black" halo_radius="1" wrap_width="20"/>
7    </Rule>
8    <Rule>
9      <Filter>[way_area] &gt;= 80000 and [way_area] &lt; 150000</Filter>
10      &maxscale_zoom14;
11      <TextSymbolizer name="name" fontset_name="book-fonts" size="10"
12        fill="black" halo_radius="1" wrap_width="20"/>
13    </Rule>
14    <Rule>
15      <Filter>[way_area] &gt;= 20000 and [way_area] &lt; 80000</Filter>
16      &maxscale_zoom15;
17      <TextSymbolizer name="name" fontset_name="book-fonts" size="10"
18        fill="black" halo_radius="1" wrap_width="20"/>
19    </Rule>
20    <Rule>
21      <Filter>[way_area] &lt; 20000</Filter>
22      &maxscale_zoom16;
23      <TextSymbolizer name="name" fontset_name="book-fonts" size="10"
24        fill="black" halo_radius="1" wrap_width="20"/>
25    </Rule>
26</Style>
27
28<Layer name="area-text" status="on" srs="&osm2pgsql_projection;">
29    <StyleName>area-text</StyleName>
30    <Datasource>
31      <Parameter name="table">
32      (select way,way_area,name
33       from &prefix;_polygon
34       where name is not null
35         and "natural" not in ('water','lake','pond','bay','wetland','glacier')
36         and landuse not in ('reservoir','basin','water')
37         and (waterway is null or waterway &lt;&gt; 'riverbank')
38       order by z_order,way_area desc
39      ) as text
40      </Parameter>
41      &datasource-settings;
42    </Datasource>
43</Layer>
Note: See TracBrowser for help on using the repository browser.