mapnik/tests/visual_tests/styles/formatting-2.xml

23 lines
713 B
XML
Raw Normal View History

2012-01-24 23:00:09 +00:00
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<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">osm</Parameter>
<Parameter name="file">../data/points.osm</Parameter>
2012-01-24 23:00:09 +00:00
</Datasource>
</Layer>
<Style name="My Style">
<Rule>
<PointSymbolizer/>
2012-01-27 22:14:49 +00:00
<!-- Nested formats -->
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" dx="0" dy="5">
[name]+'&#10;'<Format face-name="DejaVu Sans Oblique"><Format size="9">'('+[name]+')'</Format></Format></TextSymbolizer>
2012-01-24 23:00:09 +00:00
</Rule>
</Style>
</Map>