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

48 lines
1.6 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 15:31:23 +00:00
<Parameters>
<Parameter name="sizes">750,250</Parameter>
</Parameters>
<Style name="line">
<Rule>
<LineSymbolizer stroke-width="8" stroke="orange"/>
</Rule>
</Style>
2014-12-09 15:31:23 +00:00
<Style name="marker">
<Rule>
<Filter>[type] = 'poi'</Filter>
<MarkersSymbolizer />
</Rule>
</Style>
2014-12-09 15:31:23 +00:00
<Style name="shield">
<Rule>
<Filter>[type] = 'motorway'</Filter>
2014-09-10 11:45:41 +00:00
<ShieldSymbolizer margin="0" repeat-distance="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 11:45:41 +00:00
<TextSymbolizer margin="0" repeat-distance="40" 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 15:31:23 +00:00
<Parameter name="extent">-12, -4, 12, 4</Parameter>
<Parameter name="file">../data/repeat-labels.csv</Parameter>
</Datasource>
</Layer>
</Map>