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

41 lines
1.7 KiB
XML
Raw Normal View History

<?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">osm</Parameter>
<Parameter name="file">../data/bug1532.osm</Parameter>
</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>