Add test suite for #32
This commit is contained in:
parent
c48a02196e
commit
34deb99997
15
test/rendering/issue32.mml
Normal file
15
test/rendering/issue32.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.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
|
||||
"Stylesheet": [
|
||||
"issue32a.mss",
|
||||
"issue32.mss"
|
||||
],
|
||||
"Layer": [{
|
||||
"name": "world",
|
||||
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
|
||||
"Datasource": {
|
||||
"file": "http://tilemill-data.s3.amazonaws.com/test_data/shape_demo.zip",
|
||||
"type": "shape"
|
||||
}
|
||||
}]
|
||||
}
|
4
test/rendering/issue32.mss
Normal file
4
test/rendering/issue32.mss
Normal file
@ -0,0 +1,4 @@
|
||||
Map {
|
||||
background-color: #aaaaff;
|
||||
}
|
||||
|
26
test/rendering/issue32.result
Normal file
26
test/rendering/issue32.result
Normal file
@ -0,0 +1,26 @@
|
||||
<?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.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" background-color="#aaaaff">
|
||||
|
||||
|
||||
<Style name="world" filter-mode="first">
|
||||
<Rule>
|
||||
<LineSymbolizer stroke="#ffffff" stroke-width="6" />
|
||||
</Rule>
|
||||
</Style>
|
||||
<Style name="world-outline" filter-mode="first">
|
||||
<Rule>
|
||||
<LineSymbolizer stroke="#000000" stroke-width="8" />
|
||||
</Rule>
|
||||
</Style>
|
||||
<Layer name="world"
|
||||
srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
|
||||
<StyleName>world-outline</StyleName>
|
||||
<StyleName>world</StyleName>
|
||||
<Datasource>
|
||||
<Parameter name="file"><![CDATA[[absolute path]]]></Parameter>
|
||||
<Parameter name="type"><![CDATA[shape]]></Parameter>
|
||||
</Datasource>
|
||||
</Layer>
|
||||
|
||||
</Map>
|
8
test/rendering/issue32a.mss
Normal file
8
test/rendering/issue32a.mss
Normal file
@ -0,0 +1,8 @@
|
||||
#world {
|
||||
::outline {
|
||||
line-color: #000000;
|
||||
line-width: 8.0;
|
||||
}
|
||||
line-color: #ffffff;
|
||||
line-width: 6.0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user