Adding symbolizer order test
This commit is contained in:
parent
9ceba57511
commit
23c6b954e2
15
test/rendering/symbolizer_order.mml
Normal file
15
test/rendering/symbolizer_order.mml
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs",
|
||||
"Stylesheet": [
|
||||
"symbolizer_order.mss"
|
||||
],
|
||||
"Layer": [{
|
||||
"id": "world",
|
||||
"name": "world",
|
||||
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs",
|
||||
"Datasource": {
|
||||
"file": "http://tilemill-data.s3.amazonaws.com/test_data/shape_demo.zip",
|
||||
"type": "shape"
|
||||
}
|
||||
}]
|
||||
}
|
4
test/rendering/symbolizer_order.mss
Normal file
4
test/rendering/symbolizer_order.mss
Normal file
@ -0,0 +1,4 @@
|
||||
#world {
|
||||
polygon-fill: #fff;
|
||||
line-width: 2;
|
||||
}
|
30
test/rendering/symbolizer_order.result
Normal file
30
test/rendering/symbolizer_order.result
Normal file
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE Map[]>
|
||||
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs">
|
||||
|
||||
|
||||
<Style name="world-polygon">
|
||||
<Rule>
|
||||
|
||||
<PolygonSymbolizer fill="#ffffff"/>
|
||||
</Rule>
|
||||
</Style>
|
||||
<Style name="world-line">
|
||||
<Rule>
|
||||
|
||||
<LineSymbolizer stroke-width="2"/>
|
||||
</Rule>
|
||||
</Style>
|
||||
<Layer
|
||||
id="world"
|
||||
name="world"
|
||||
srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs">
|
||||
<StyleName>world-line</StyleName>
|
||||
<StyleName>world-polygon</StyleName>
|
||||
<Datasource>
|
||||
<Parameter name="file">[absolute path]</Parameter>
|
||||
<Parameter name="type">shape</Parameter>
|
||||
</Datasource>
|
||||
</Layer>
|
||||
|
||||
</Map>
|
Loading…
Reference in New Issue
Block a user