mapnik/tests/visual_tests/styles/text-line-wrap.xml

78 lines
2.3 KiB
XML
Raw Normal View History

<!DOCTYPE Map>
<Map background-color="#b5d0d0" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" minimum-version="0.7.2">
2014-12-09 15:31:23 +00:00
<Parameters>
<Parameter name="sizes">512,512</Parameter>
</Parameters>
<Style name="1">
<Rule>
<TextSymbolizer
size="15"
dy="-5"
allow-overlap="true"
face-name="DejaVu Sans Book"
wrap-width=".1"
repeat-wrap-character="[repeat-wrap-character]"
wrap-character="[wrap-character]"
halo-radius="1">[label]</TextSymbolizer>
<PointSymbolizer allow-overlap="true" />
2014-12-09 15:31:23 +00:00
</Rule>
</Style>
<Layer name="point" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>1</StyleName>
<Datasource>
<Parameter name="inline">
{
"type": "FeatureCollection",
2014-12-09 15:31:23 +00:00
"features": [
2014-12-09 15:31:23 +00:00
{ "type": "Feature",
"properties": {
"label": "this,that",
"wrap-character":",",
"repeat-wrap-character":true
},
"geometry" : { "type": "Point", "coordinates": [ 2.5, 2.5 ] }
},
2014-12-09 15:31:23 +00:00
{ "type": "Feature",
"properties": {
"label": "this-that",
"wrap-character":"-",
"repeat-wrap-character":true
},
"geometry" : { "type": "Point", "coordinates": [ 0, 5 ] }
}
]
}
2014-12-09 15:31:23 +00:00
</Parameter>
<Parameter name="type">geojson</Parameter>
</Datasource>
</Layer>
<!-- points to frame data view -->
<Style name="frame">
<Rule>
<PointSymbolizer />
</Rule>
</Style>
<Layer name="frame" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>frame</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
<Parameter name="inline">
x,y
-1,-1
6,-1
-1,6
6,6
</Parameter>
</Datasource>
</Layer>
2014-12-09 15:31:23 +00:00
</Map>