diff options
author | Mike Morris <michael.patrick.morris@gmail.com> | 2014-07-18 17:58:17 -0400 |
---|---|---|
committer | Mike Morris <michael.patrick.morris@gmail.com> | 2014-07-18 17:58:17 -0400 |
commit | 58a9ec30926e7be992560cca733b4fc270c11732 (patch) | |
tree | 89dba34f019de6b85f7ae904a957eefa1e633369 /test/fixtures/style_parser/stop-zoom-value.style.json | |
parent | 75f9976f6831a6057d0903d8860f8646c7b39b08 (diff) | |
download | qtlocation-mapboxgl-58a9ec30926e7be992560cca733b4fc270c11732.tar.gz |
add stop zoom/value fixture
Diffstat (limited to 'test/fixtures/style_parser/stop-zoom-value.style.json')
-rw-r--r-- | test/fixtures/style_parser/stop-zoom-value.style.json | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/test/fixtures/style_parser/stop-zoom-value.style.json b/test/fixtures/style_parser/stop-zoom-value.style.json new file mode 100644 index 0000000000..87e674d52d --- /dev/null +++ b/test/fixtures/style_parser/stop-zoom-value.style.json @@ -0,0 +1,45 @@ +{ + "version": 3, + "sources": { + "mapbox": { + "type": "vector", + "url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5", + "maxZoom": 14 + } + }, + "layers": [{ + "id": "landcover_grass", + "source": "mapbox", + "source-layer": "landcover", + "filter": { "class": "grass" }, + "type": "fill", + "style": { + "fill-opacity": { + "stops": [] + } + } + }, { + "id": "landcover_scrub", + "source": "mapbox", + "source-layer": "landcover", + "filter": { "class": "scrub" }, + "type": "fill", + "style": { + "fill-opacity": { + "stops": [[12]] + } + } + }, { + "id": "landcover_wood", + "source": "mapbox", + "source-layer": "landcover", + "filter": { "class": "wood" }, + "type": "fill", + "style": { + "fill-color": "@wood", + "fill-opacity": { + "stops": [[12, 1], [13, 0.8], [16, 0.2]] + } + } + }] +} |