mapnik/tests/visual_tests/styles/text-bug1532.xml

42 lines
1.8 KiB
XML
Raw Normal View History

2013-10-24 06:59:14 +00:00
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<!-- Minimal testcase for bug #1523. -->
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>My Style</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
<Parameter name="extent">0.0121962878686,0.14886974508,0.906367305121,0.389927385014</Parameter>
<Parameter name="file">../data/bug1532.csv</Parameter>
2013-10-24 06:59:14 +00:00
</Datasource>
</Layer>
<Style name="My Style">
<Rule>
<Filter>[wrap] = "yes" and [type] = "line"</Filter>
<LineSymbolizer stroke-width="1" stroke="red"/>
<!-- Font and size don't matter as long as text length is > wrap_width -->
<TextSymbolizer face-name="DejaVu Sans Bold" size="15" placement="line" wrap-width="35">"abcdefgh"</TextSymbolizer>
</Rule>
<Rule>
<Filter>[wrap] = "no" and [type] = "line"</Filter>
<LineSymbolizer stroke-width="1" stroke="blue"/>
<TextSymbolizer face-name="DejaVu Sans Bold" size="15" placement="line">"abcdefgh"</TextSymbolizer>
</Rule>
<Rule>
<Filter>[wrap] = "yes" and [type] = "point"</Filter>
<PointSymbolizer ignore-placement="true"/>
<TextSymbolizer face-name="DejaVu Sans Bold" size="15" placement="point" wrap-width="35">"abcdefgh"</TextSymbolizer>
</Rule>
<Rule>
<Filter>[wrap] = "no" and [type] = "point"</Filter>
<PointSymbolizer ignore-placement="true"/>
<TextSymbolizer face-name="DejaVu Sans Bold" size="15" placement="point">"abcdefgh"</TextSymbolizer>
</Rule>
</Style>
</Map>