mapnik/tests/data/good_maps/text_breaks.xml

80 lines
2.5 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+init=epsg:4326" minimum_version="0.7.0">
<Style name="1">
<Rule>
<Filter>([label]='center')</Filter>
<TextSymbolizer
name="'one&#10;two&#10;three'"
face_name="DejaVu Sans Book"
size="10"
wrap_character=","
wrap_width="1"
halo_radius="1" dy="-5"
/>
<PointSymbolizer />
</Rule>
<Rule>
<ElseFilter />
<TextSymbolizer
name="[label]"
face_name="DejaVu Sans Book"
size="10"
wrap_character=","
wrap_width="1"
halo_radius="1" dy="-5"
/>
<PointSymbolizer />
</Rule>
</Style>
<Layer name="point" srs="+init=epsg:4326">
<StyleName>1</StyleName>
<Datasource>
<Parameter name="string">
{
"type": "FeatureCollection",
/* comment */
"features": [
{ "type": "Feature",
"properties": { "x": 0, "y": 0, "label": "0\n0" },
"geometry" : { "type": "Point", "coordinates": [ 0, 0 ] }
},
{ "type": "Feature",
"properties": { "x": 5, "y": 5, "label": "5\n5" },
"geometry" : { "type": "Point", "coordinates": [ 5, 5 ] }
},
{ "type": "Feature",
"properties": { "x": 0, "y": 0, "label": "0,5" },
"geometry" : { "type": "Point", "coordinates": [ 0, 5 ] }
},
{ "type": "Feature",
"properties": { "x": 5, "y": 0, "label": "5,0" },
"geometry" : { "type": "Point", "coordinates": [ 5, 0 ] }
},
{ "type": "Feature",
"properties": { "x": 2.5, "y": 2.5, "label": "center" },
"geometry" : { "type": "Point", "coordinates": [ 2.5, 2.5 ] }
},
]
}
</Parameter>
<Parameter name="layer_by_index">0</Parameter>
<Parameter name="type">ogr</Parameter>
</Datasource>
</Layer>
</Map>