source: subversion/applications/rendering/nor-screenspec/layer-textareas.xml.ent @ 25622

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

Add area features

File size: 1.3 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" fill="#000000" halo_radius="1" wrap_width="20"/>
6    </Rule>
7    <Rule>
8      <Filter>[way_area] &gt;= 80000 and [way_area] &lt; 150000</Filter>
9      &maxscale_zoom14;
10      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#000000" halo_radius="1" wrap_width="20"/>
11    </Rule>
12    <Rule>
13      <Filter>[way_area] &gt;= 20000 and [way_area] &lt; 80000</Filter>
14      &maxscale_zoom15;
15      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#000000" halo_radius="1" wrap_width="20"/>
16    </Rule>
17    <Rule>
18      <Filter>[way_area] &lt; 20000</Filter>
19      &maxscale_zoom16;
20      <TextSymbolizer name="name" fontset_name="book-fonts" size="10" fill="#000000" halo_radius="1" wrap_width="20"/>
21    </Rule>
22</Style>
23
24<Layer name="area-text" status="on" srs="&osm2pgsql_projection;">
25    <StyleName>area-text</StyleName>
26    <Datasource>
27      <Parameter name="table">
28      (select way,way_area,name
29       from &prefix;_polygon
30       where name is not null
31         and (waterway is null or waterway &lt;&gt; 'riverbank')
32       order by z_order,way_area desc
33      ) as text
34      </Parameter>
35      &datasource-settings;
36    </Datasource>
37</Layer>
Note: See TracBrowser for help on using the repository browser.