Skip to content
Permalink
5e91a77cbd
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
141 lines (136 sloc) 6.58 KB
<Style name="text-towns">
<!-- zoom 11 -->
<Rule>
&maxscale_zoom11;
&minscale_zoom11;
<Filter>([place] = 'town') and ([population] &gt; 50000)</Filter>
<PointSymbolizer file="symbols-otm/town.png"/>
<TextSymbolizer fontset-name="sans-condensed" size="17" fill="black" halo-radius="2" halo-fill="rgba(255,255,255,0.8)" wrap-width="100" placement="point" placement-type="list">[name]
<Placement dx="6" dy="-5" />
<Placement dx="7" dy="5" />
<Placement dy="-8" />
<Placement dy="7" />
<Placement dx="-5" dy="6" />
</TextSymbolizer>
</Rule>
<Rule>
&maxscale_zoom11;
&minscale_zoom11;
<Filter>([place] = 'town') and ([population] &lt; 50000) and ([population] &gt; 20000)</Filter>
<PointSymbolizer file="symbols-otm/town.png"/>
<TextSymbolizer fontset-name="sans-condensed" size="15" fill="black" halo-radius="2" halo-fill="rgba(255,255,255,0.8)" wrap-width="100" placement="point" placement-type="list">[name]
<Placement dx="5" dy="-4" />
<Placement dx="6" dy="4" />
<Placement dy="-7" />
<Placement dy="6" />
<Placement dx="-4" dy="5" />
</TextSymbolizer>
</Rule>
<Rule>
&maxscale_zoom11;
&minscale_zoom11;
<Filter>([place] = 'town') and not ([population] &gt; 20000)</Filter>
<PointSymbolizer file="symbols-otm/small_town.png"/>
<TextSymbolizer fontset-name="sans-condensed" size="12" fill="black" halo-radius="2" halo-fill="rgba(255,255,255,0.8)" wrap-width="100" placement="point" placement-type="list">[name]
<Placement dx="4" dy="-3" />
<Placement dx="5" dy="3" />
<Placement dy="-6" />
<Placement dy="5" />
<Placement dx="-3" dy="4" />
</TextSymbolizer>
</Rule>
<!-- zoom 12 -->
<Rule>
&maxscale_zoom12;
&minscale_zoom12;
<Filter>([place] = 'town') and ([population] &gt; 50000)</Filter>
<TextSymbolizer fontset-name="sans-condensed" size="19" fill="black" halo-radius="2" halo-fill="rgba(255,255,255,0.8)" wrap-width="100" dx="40" dy="-4" justify-alignment="center" placement="point" placement-type="list">[name]
<Placement dx="40" dy="-5" />
<Placement dx="7" dy="5" />
<Placement dy="-8" />
<Placement dy="7" />
<Placement dx="-5" dy="6" />
</TextSymbolizer>
</Rule>
<Rule>
&maxscale_zoom12;
&minscale_zoom12;
<Filter>([place] = 'town') and ([population] &lt; 50000) and ([population] &gt; 20000)</Filter>
<TextSymbolizer fontset-name="sans-condensed" size="16" fill="black" halo-radius="2" halo-fill="rgba(255,255,255,0.8)" wrap-width="100" dx="40" dy="-4" justify-alignment="center" placement="point" placement-type="list">[name]
<Placement dx="40" dy="-4" />
<Placement dx="7" dy="5" />
<Placement dy="-8" />
<Placement dy="7" />
<Placement dx="-5" dy="6" />
</TextSymbolizer>
</Rule>
<Rule>
&maxscale_zoom12;
&minscale_zoom12;
<Filter>([place] = 'town') and not ([population] &gt; 20000)</Filter>
<TextSymbolizer fontset-name="sans-condensed" size="14" fill="black" halo-radius="2" halo-fill="rgba(255,255,255,0.8)" wrap-width="100" dx="30" dy="-3" justify-alignment="center" placement="point" placement-type="list">[name]
<Placement dx="30" dy="-3" />
<Placement dx="7" dy="5" />
<Placement dy="-8" />
<Placement dy="7" />
<Placement dx="-5" dy="6" />
</TextSymbolizer>
</Rule>
<!-- zoom 13 -->
<Rule>
&maxscale_zoom13;
&minscale_zoom13;
<Filter>([place] = 'town') and ([population] &gt; 50000)</Filter>
<TextSymbolizer fontset-name="sans-condensed" size="20" fill="black" halo-radius="2" halo-fill="rgba(255,255,255,0.8)" wrap-width="100" placement="point" dx="40" dy="-5" justify-alignment="center">[name] + "\n" <Format size="10">[ele]</Format></TextSymbolizer>
</Rule>
<Rule>
&maxscale_zoom13;
&minscale_zoom13;
<Filter>([place] = 'town') and ([population] &lt; 50000) and ([population] &gt; 20000)</Filter>
<TextSymbolizer fontset-name="sans-condensed" size="18" fill="black" halo-radius="2" halo-fill="rgba(255,255,255,0.8)" wrap-width="100" placement="point" dx="30" dy="-4" justify-alignment="center">[name] + "\n" <Format size="10">[ele]</Format></TextSymbolizer>
</Rule>
<Rule>
&maxscale_zoom13;
&minscale_zoom13;
<Filter>([place] = 'town') and not ([population] &gt; 20000)</Filter>
<TextSymbolizer fontset-name="sans-condensed" size="16" fill="black" halo-radius="2" halo-fill="rgba(255,255,255,0.8)" wrap-width="100" placement="point" dx="50" dy="-4" justify-alignment="center">[name] + "\n" <Format size="10">[ele]</Format></TextSymbolizer>
</Rule>
<!-- zoom 14 -->
<Rule>
&maxscale_zoom14;
&minscale_zoom14;
<Filter>([place] = 'town') and ([population] &gt; 50000)</Filter>
<TextSymbolizer fontset-name="sans-condensed" size="20" fill="black" halo-radius="2" halo-fill="rgba(255,255,255,0.8)" wrap-width="100" placement="point" dx="40" dy="-5" justify-alignment="center">[name] + "\n" <Format size="10">[ele]</Format></TextSymbolizer>
</Rule>
<Rule>
&maxscale_zoom14;
&minscale_zoom14;
<Filter>([place] = 'town') and ([population] &lt; 50000) and ([population] &gt; 10000)</Filter>
<TextSymbolizer fontset-name="sans-condensed" size="19" fill="black" halo-radius="2" halo-fill="rgba(255,255,255,0.8)" wrap-width="100" placement="point" dx="30" dy="-4" justify-alignment="center">[name] + "\n" <Format size="10">[ele]</Format></TextSymbolizer>
</Rule>
<Rule>
&maxscale_zoom14;
&minscale_zoom14;
<Filter>([place] = 'town') and not ([population] &gt; 10000)</Filter>
<TextSymbolizer fontset-name="sans-condensed" size="17" fill="black" halo-radius="2" halo-fill="rgba(255,255,255,0.8)" wrap-width="100" placement="point" dx="50" dy="-4" justify-alignment="center">[name] + "\n" <Format size="10">[ele]</Format></TextSymbolizer>
</Rule>
<!-- zoom 15 -->
<Rule>
&maxscale_zoom15;
&minscale_zoom15;
<Filter>([place] = 'town') and ([population] &gt; 50000)</Filter>
<TextSymbolizer fontset-name="sans-condensed" size="33" fill="black" halo-radius="2" halo-fill="rgba(255,255,255,0.8)" character-spacing="15" wrap-width="100" placement="point">[name]</TextSymbolizer>
</Rule>
<Rule>
&maxscale_zoom15;
&minscale_zoom15;
<Filter>([place] = 'town') and ([population] &lt; 50000) and ([population] &gt; 10000)</Filter>
<TextSymbolizer fontset-name="sans-condensed" size="30" fill="black" halo-radius="2" halo-fill="rgba(255,255,255,0.8)" character-spacing="15" wrap-width="100" placement="point">[name]</TextSymbolizer>
</Rule>
<Rule>
&maxscale_zoom15;
&minscale_zoom15;
<Filter>([place] = 'town') and not ([population] &gt; 10000)</Filter>
<TextSymbolizer fontset-name="sans-condensed" size="25" fill="black" halo-radius="2" halo-fill="rgba(255,255,255,0.8)" character-spacing="10" wrap-width="100" placement="point">[name]</TextSymbolizer>
</Rule>
</Style>