diff --git a/test/rendering/issue_239.mml b/test/rendering/issue_239.mml new file mode 100644 index 0000000..05a5dea --- /dev/null +++ b/test/rendering/issue_239.mml @@ -0,0 +1,38 @@ +{ + "bounds": [ + -180, + -85.05112877980659, + 180, + 85.05112877980659 + ], + "center": [ + 0, + 0, + 2 + ], + "format": "png", + "interactivity": false, + "minzoom": 0, + "maxzoom": 22, + "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": [ + "issue_239_a.mss", + "issue_239_b.mss" + ], + "Layer": [ + { + "id": "countries", + "name": "countries", + "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://mapbox-geodata.s3.amazonaws.com/natural-earth-1.4.0/cultural/10m-admin-0-countries.zip", + "type": "shape" + } + } + ], + "scale": 1, + "metatile": 2, + "name": "", + "description": "" +} \ No newline at end of file diff --git a/test/rendering/issue_239.result b/test/rendering/issue_239.result new file mode 100644 index 0000000..812aa92 --- /dev/null +++ b/test/rendering/issue_239.result @@ -0,0 +1,34 @@ + + + + + + -180,-85.05112877980659,180,85.05112877980659 + 0,0,2 + png + 0 + 22 + + + + + + + countries-outline + countries-fill + + + + + + + diff --git a/test/rendering/issue_239_a.mss b/test/rendering/issue_239_a.mss new file mode 100644 index 0000000..9ee5375 --- /dev/null +++ b/test/rendering/issue_239_a.mss @@ -0,0 +1,7 @@ +// Only the coastlines should be visible, +// not land boundaries. +#countries::outline { + line-color: #024; + line-width: 2; + line-join: round; +} \ No newline at end of file diff --git a/test/rendering/issue_239_b.mss b/test/rendering/issue_239_b.mss new file mode 100644 index 0000000..dc00477 --- /dev/null +++ b/test/rendering/issue_239_b.mss @@ -0,0 +1,5 @@ +// This attachment should cover most of the outlines +#countries::fill { + polygon-fill: #ace; + polygon-gamma: 0.3; +}