mapnik/tests/data/good_maps/shield_symbolizer.xml

68 lines
2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map >
<Map background-color="#b5d0d0" srs="+init=epsg:4326" minimum_version="0.7.0">
<Style name="1">
<Rule>
<ShieldSymbolizer
name="[label]"
file="../images/dummy.png"
face_name="DejaVu Sans Book"
size="10"
transform="scale(5) translate(15, 15) rotate(20) skewX(20) skewY(5)"
halo_radius="1"
dy="-5"
dx="-5"
shield_dx="10"
shield_dy="10"
no_text="false"
opacity=".5"
text-opacity=".3"
allow_overlap="true"
avoid_edges="false"
/>
</Rule>
<Rule>
<PointSymbolizer
allow_overlap="true" />
</Rule>
</Style>
<Style name="2">
<Rule>
<LineSymbolizer></LineSymbolizer>
</Rule>
<Rule>
<ShieldSymbolizer
name="[label]"
file="../svg/ellipses.svg"
allow_overlap="true"
face_name="DejaVu Sans Book"
size="10"
no_text="false"
opacity=".5"
text-opacity=".3"
spacing="50"
line_spacing="10"
placement="line"
/>
</Rule>
</Style>
<Layer name="line" srs="+init=epsg:4326">
<StyleName>2</StyleName>
<Datasource>
<Parameter name="file">../json/lines.json</Parameter>
<Parameter name="layer_by_index">0</Parameter>
<Parameter name="type">ogr</Parameter>
</Datasource>
</Layer>
<Layer name="point" srs="+init=epsg:4326">
<StyleName>1</StyleName>
<Datasource>
<Parameter name="file">../json/points.json</Parameter>
<Parameter name="layer_by_index">0</Parameter>
<Parameter name="type">ogr</Parameter>
</Datasource>
</Layer>
</Map>