Adding Issue #60 tests

This commit is contained in:
Tom MacWright 2011-08-30 18:19:39 -04:00
parent 73ab87dcce
commit dec481c76c
3 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,14 @@
{
"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 +wktext +no_defs +over",
"Stylesheet": [
"issue60.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 +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"
}
}]
}

View File

@ -0,0 +1,6 @@
#world {
[NET_INFLOW > -30000] { polygon-fill: #f00; }
[NET_INFLOW > -10000] { polygon-fill: #0f0; }
}
#world [OBJECTID=12] { polygon-pattern-file:url(../resources/textures/stripe.png); }

View File

@ -0,0 +1,6 @@
[
{"elements":["#world"],"filters":["OBJECTID=12"],"specificity":[1,0,1,131]},
{"elements":["#world"],"filters":["NET_INFLOW>-10000"],"specificity":[1,0,1,83]},
{"elements":["#world"],"filters":["NET_INFLOW>-30000"],"specificity":[1,0,1,35]},
{"elements":["#world"],"specificity":[1,0,0,0]}
]