diff options
author | Łukasz Paczos <lukas.paczos@gmail.com> | 2018-04-12 14:39:38 +0200 |
---|---|---|
committer | Łukasz Paczos <lukas.paczos@gmail.com> | 2018-04-12 16:10:18 +0200 |
commit | d36ace4cc1405f9e4bb69f8690a34a94a3742d40 (patch) | |
tree | 625cebbc8148e4dad879e4d32474ca122a262347 /scripts/generate-style-code.js | |
parent | ff11cb20163caddf5e31ebdaeaafa0e1a9e456ec (diff) | |
download | qtlocation-mapboxgl-upstream/lp-js-submodule-bump.tar.gz |
[core] update mapbox-gl-js submoduleupstream/lp-js-submodule-bump
Diffstat (limited to 'scripts/generate-style-code.js')
-rwxr-xr-x | scripts/generate-style-code.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/generate-style-code.js b/scripts/generate-style-code.js index 6ddb787f19..2023c8cc41 100755 --- a/scripts/generate-style-code.js +++ b/scripts/generate-style-code.js @@ -168,6 +168,9 @@ const layers = Object.keys(spec.layer.type.values).map((type) => { }, []); const paintProperties = Object.keys(spec[`paint_${type}`]).reduce((memo, name) => { + // Skip line-gradient until it is ported from gl-js + if (name === 'line-gradient') return memo; + spec[`paint_${type}`][name].name = name; memo.push(spec[`paint_${type}`][name]); return memo; |