add test map that uses svg transform, displacement and other custom properties
This commit is contained in:
parent
75893b13a7
commit
c94b66be69
2 changed files with 43 additions and 0 deletions
34
tests/data/good_maps/shield_symbolizer.xml
Normal file
34
tests/data/good_maps/shield_symbolizer.xml
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?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="../svg/rect.svg"
|
||||
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"
|
||||
/>
|
||||
</Rule>
|
||||
|
||||
</Style>
|
||||
|
||||
<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>
|
9
tests/data/svg/rect.svg
Normal file
9
tests/data/svg/rect.svg
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
|
||||
<svg width="100%" height="100%" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
||||
|
||||
<rect width="20" height="15" style="fill:rgb(0,0,255);stroke-width:1;stroke:rgb(0,0,0)" />
|
||||
|
||||
</svg>
|
After Width: | Height: | Size: 320 B |
Loading…
Reference in a new issue