diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-06-01 17:43:12 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-06-01 17:43:12 +0200 |
commit | 1be972eb15fb53fa07b3154fb93bbcf742888b37 (patch) | |
tree | 6ae7e97c0c36ecb1e4922bd4f69c26d9244441a3 /bin/style.js | |
parent | 2dc03c733c8ea29890a0b050a0c60f6da9d35e21 (diff) | |
download | qtlocation-mapboxgl-1be972eb15fb53fa07b3154fb93bbcf742888b37.tar.gz |
Allow property functions for prerender properties, but tie them to the tile's zoom level instead of the map zoom level
fixes #253
Diffstat (limited to 'bin/style.js')
-rw-r--r-- | bin/style.js | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/bin/style.js b/bin/style.js index ffa326525a..eb2994fdf9 100644 --- a/bin/style.js +++ b/bin/style.js @@ -1819,6 +1819,11 @@ module.exports = { "stops", {"z": 16, "val": 10}, {"z": 17, "val": 11} + ], + "hillshade_prerender_size": [ + "stops", + {"z": 13, "val": 1024 }, + {"z": 14, "val": 512 } ] }, "classes": [ @@ -1973,7 +1978,7 @@ module.exports = { "color": "#103", "antialias": false, "prerender": true, - "prerender-size": 1024, + "prerender-size": "hillshade_prerender_size", "prerender-blur": 1, "opacity": [ "stops", @@ -1988,7 +1993,7 @@ module.exports = { "color": "#206", "antialias": false, "prerender": true, - "prerender-size": 1024, + "prerender-size": "hillshade_prerender_size", "prerender-blur": 1, "opacity": [ "stops", @@ -2003,7 +2008,7 @@ module.exports = { "color": "#fffff3", "antialias": false, "prerender": true, - "prerender-size": 1024, + "prerender-size": "hillshade_prerender_size", "prerender-blur": 1, "opacity": [ "stops", @@ -2018,7 +2023,7 @@ module.exports = { "color": "#ffd", "antialias": false, "prerender": true, - "prerender-size": 1024, + "prerender-size": "hillshade_prerender_size", "prerender-blur": 1, "opacity": [ "stops", @@ -2785,7 +2790,7 @@ module.exports = { "color": "#103", "antialias": false, "prerender": true, - "prerender-size": 1024, + "prerender-size": "hillshade_prerender_size", "prerender-blur": 1, "opacity": [ "stops", @@ -2799,7 +2804,7 @@ module.exports = { "color": "#206", "antialias": false, "prerender": true, - "prerender-size": 1024, + "prerender-size": "hillshade_prerender_size", "prerender-blur": 1, "opacity": [ "stops", @@ -2813,7 +2818,7 @@ module.exports = { "color": "#fdfdad", "antialias": false, "prerender": true, - "prerender-size": 1024, + "prerender-size": "hillshade_prerender_size", "prerender-blur": 1, "opacity": [ "stops", @@ -2828,7 +2833,7 @@ module.exports = { "color": "#ffe1b7", "antialias": false, "prerender": true, - "prerender-size": 1024, + "prerender-size": "hillshade_prerender_size", "prerender-blur": 1, "opacity": [ "stops", |