initial tests for marker avoid-edges - 2727eddf9
This commit is contained in:
parent
fef3d22154
commit
8b059b0d42
7 changed files with 187 additions and 0 deletions
|
@ -0,0 +1,137 @@
|
|||
{
|
||||
"keys": [
|
||||
"",
|
||||
"1"
|
||||
],
|
||||
"data": {},
|
||||
"grid": [
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" !!!!!!!! ",
|
||||
" !!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!! !!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!! !!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||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!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ",
|
||||
" ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ",
|
||||
" ! !!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!! !!!!!!!!!!!!!!!!!!!! ",
|
||||
"! !!!!!!!!! ! !!!!!!!!!!!! ",
|
||||
" !!!!!!!!!!! ",
|
||||
" !!!!!!!!!! ",
|
||||
" !!!!!!!! ",
|
||||
" !!!!! ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "
|
||||
]
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
49
tests/visual_tests/styles/marker-on-line-and-avoid-edges.xml
Normal file
49
tests/visual_tests/styles/marker-on-line-and-avoid-edges.xml
Normal file
|
@ -0,0 +1,49 @@
|
|||
<Map>
|
||||
<Style name="line" filter-mode="first" >
|
||||
<Rule>
|
||||
<LineSymbolizer stroke="#000000" />
|
||||
</Rule>
|
||||
</Style>
|
||||
<Style name="point-placement" filter-mode="first" >
|
||||
<Rule>
|
||||
<MarkersSymbolizer
|
||||
allow-overlap="true"
|
||||
file="shape://ellipse"
|
||||
placement="line"
|
||||
spacing="30"
|
||||
transform="scale(4,10)"
|
||||
fill="blue"
|
||||
avoid-edges="true"
|
||||
clip="false">
|
||||
</MarkersSymbolizer>
|
||||
<MarkersSymbolizer
|
||||
allow-overlap="true"
|
||||
file="shape://ellipse"
|
||||
placement="vertex-last"
|
||||
transform="scale(10,4)"
|
||||
fill="red"
|
||||
avoid-edges="true"
|
||||
clip="false">
|
||||
</MarkersSymbolizer>
|
||||
<MarkersSymbolizer
|
||||
allow-overlap="true"
|
||||
file="shape://ellipse"
|
||||
placement="vertex-first"
|
||||
transform="scale(10,4)"
|
||||
fill="red"
|
||||
avoid-edges="true"
|
||||
clip="false">
|
||||
</MarkersSymbolizer>
|
||||
<DebugSymbolizer />
|
||||
</Rule>
|
||||
</Style>
|
||||
<Layer name="carto_tests">
|
||||
<StyleName>line</StyleName>
|
||||
<StyleName>point-placement</StyleName>
|
||||
<Datasource>
|
||||
<Parameter name="type">csv</Parameter>
|
||||
<Parameter name="file">../data/marker-on-line.csv</Parameter>
|
||||
<Parameter name="separator">|</Parameter>
|
||||
</Datasource>
|
||||
</Layer>
|
||||
</Map>
|
|
@ -272,6 +272,7 @@ files = {
|
|||
'halo-comp-op-on-satellite':{'sizes':[(450,450)]},
|
||||
'marker-whole-multi-polygon':{'sizes':[(512,512)]},
|
||||
'shield-on-line-and-avoid-edges':{'sizes':[(512,512)]},
|
||||
'marker-on-line-and-avoid-edges':{'sizes':[(512,512)]},
|
||||
'text-typographic':{'sizes':[(512,512)]},
|
||||
'functional-expressions':{'sizes':[(256,256)], 'bbox':mapnik.Box2d(-10,-10,10,10)},
|
||||
'marker-collide':{'sizes':[(512,512)]},
|
||||
|
|
Loading…
Reference in a new issue