mapnik/tests/visual_tests/styles/repeat-labels-2.xml

48 lines
1.5 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<Map background-color="white" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
2014-12-09 16:31:23 +01:00
<Parameters>
<Parameter name="sizes">750,250</Parameter>
</Parameters>
<Style name="line">
<Rule>
<LineSymbolizer stroke-width="8" stroke="orange"/>
</Rule>
</Style>
2014-12-09 16:31:23 +01:00
<Style name="marker">
<Rule>
<Filter>[type] = 'poi'</Filter>
<MarkersSymbolizer />
</Rule>
</Style>
2014-12-09 16:31:23 +01:00
<Style name="shield">
<Rule>
<Filter>[type] = 'motorway'</Filter>
2014-09-10 13:45:41 +02:00
<ShieldSymbolizer margin="60" spacing="120" placement="line" face-name="DejaVu Sans Book" size="10" fill="white" file="../../data/svg/rect.svg" transform="scale(0.75)">[ref]</ShieldSymbolizer>
</Rule>
</Style>
<Style name="text">
<Rule>
<Filter>[type] != 'poi'</Filter>
2014-09-10 13:45:41 +02:00
<TextSymbolizer margin="50" spacing="70" placement="line" face-name="DejaVu Sans Book" size="12">[name]</TextSymbolizer>
</Rule>
</Style>
<Layer name="layer" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>line</StyleName>
<StyleName>marker</StyleName>
<StyleName>shield</StyleName>
<StyleName>text</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
2014-12-09 16:31:23 +01:00
<Parameter name="extent">-12, -4, 12, 4</Parameter>
<Parameter name="file">../data/repeat-labels.csv</Parameter>
</Datasource>
</Layer>
</Map>