Adding failing test for #74
This commit is contained in:
parent
e8d985efd4
commit
4ccd95aaee
38
test/rendering/sharedclass.mml
Normal file
38
test/rendering/sharedclass.mml
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
"_center": {
|
||||
"lat": 42.79540065303713,
|
||||
"lon": 12.963867187500002,
|
||||
"zoom": 4
|
||||
},
|
||||
"_format": "png",
|
||||
"_interactivity": false,
|
||||
"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": [
|
||||
"sharedclass.mss"
|
||||
],
|
||||
"Layer": [
|
||||
{
|
||||
"id": "ab",
|
||||
"name": "ab",
|
||||
"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",
|
||||
"geometry": "polygon",
|
||||
"Datasource": {
|
||||
"file": "http://tilemill-data.s3.amazonaws.com/world_borders_merc.zip",
|
||||
"type": "shape"
|
||||
},
|
||||
"class": "a b"
|
||||
},
|
||||
{
|
||||
"Datasource": {
|
||||
"file": "http://tilemill-data.s3.amazonaws.com/natural-earth-10m-1.3.0/urban_areas.zip",
|
||||
"type": "shape"
|
||||
},
|
||||
"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",
|
||||
"id": "bc",
|
||||
"name": "bc",
|
||||
"class": "b c",
|
||||
"geometry": "polygon"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
11
test/rendering/sharedclass.mss
Normal file
11
test/rendering/sharedclass.mss
Normal file
@ -0,0 +1,11 @@
|
||||
.a {
|
||||
polygon-fill: #f00;
|
||||
}
|
||||
|
||||
.b {
|
||||
line-color: #0f0;
|
||||
}
|
||||
|
||||
.c {
|
||||
marker-fill: #00f;
|
||||
}
|
38
test/rendering/sharedclass.result
Normal file
38
test/rendering/sharedclass.result
Normal file
@ -0,0 +1,38 @@
|
||||
<?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">
|
||||
|
||||
|
||||
<Style name="ab" filter-mode="first">
|
||||
<Rule>
|
||||
<LineSymbolizer stroke="#00ff00" />
|
||||
<PolygonSymbolizer fill="#ff0000" />
|
||||
</Rule>
|
||||
</Style>
|
||||
<Layer
|
||||
name="ab"
|
||||
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>ab</StyleName>
|
||||
<Datasource>
|
||||
<Parameter name="file"><![CDATA[[absolute path]]]></Parameter>
|
||||
<Parameter name="type"><![CDATA[shape]]></Parameter>
|
||||
</Datasource>
|
||||
</Layer>
|
||||
|
||||
<Style name="bc" filter-mode="first">
|
||||
<Rule>
|
||||
<MarkersSymbolizer fill="#0000ff" />
|
||||
<LineSymbolizer stroke="#00ff00" />
|
||||
</Rule>
|
||||
</Style>
|
||||
<Layer
|
||||
name="bc"
|
||||
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>bc</StyleName>
|
||||
<Datasource>
|
||||
<Parameter name="file"><![CDATA[[absolute path]]]></Parameter>
|
||||
<Parameter name="type"><![CDATA[shape]]></Parameter>
|
||||
</Datasource>
|
||||
</Layer>
|
||||
|
||||
</Map>
|
Loading…
Reference in New Issue
Block a user