mapnik/tests/visual_tests/styles/text-vertical-alignment.xml
2014-09-26 19:27:43 +00:00

37 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<!-- Upright test -->
<Map background-color="white" srs="+proj=latlong +datum=WGS84">
<Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>My Style</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
<Parameter name="file">../data/lines2.csv</Parameter>
</Datasource>
</Layer>
<Style name="My Style">
<Rule>
<LineSymbolizer stroke-width="12" stroke="red" />
<MarkersSymbolizer placement="vertex-first" file="shape://arrow" ignore-placement="true" />
<TextSymbolizer
face-name="DejaVu Sans Book"
size="16"
placement="line"
max-char-angle-delta="0"
allow-overlap="true"
vertical-alignment="top"
>"vertical-alignment=top"</TextSymbolizer>
<TextSymbolizer
face-name="DejaVu Sans Book"
size="16"
placement="line"
max-char-angle-delta="0"
allow-overlap="true"
vertical-alignment="bottom"
>"vertical-alignment=bottom"</TextSymbolizer>
</Rule>
</Style>
</Map>