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

22 lines
791 B
XML
Raw Normal View History

2012-03-03 16:32:31 +01:00
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
2012-03-03 16:32:31 +01:00
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
2012-03-03 16:32:31 +01:00
<StyleName>My Style</StyleName>
<Datasource>
<Parameter name="type">osm</Parameter>
<Parameter name="file">../data/lines.osm</Parameter>
2012-03-03 16:32:31 +01:00
</Datasource>
</Layer>
<Style name="My Style">
<Rule>
<Filter>[mapnik::geometry_type]=linestring</Filter>
2012-03-03 16:32:31 +01:00
<LineSymbolizer stroke-width="12" stroke="red"/>
<TextSymbolizer face-name="DejaVu Sans Book" size="16" placement="line">[name]<Format size="8" fill="blue">[name]</Format></TextSymbolizer>
</Rule>
</Style>
</Map>