diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-05-31 23:21:15 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-06-02 11:14:09 +0200 |
commit | 606ad5622013b8dd36a1dcf6b0f05c4c321de3d3 (patch) | |
tree | 59ec535aa3e1842cb143393f35a0af7bac4e1319 /bin | |
parent | 3bc5e0325395ba54db58b9f20159b253bd81f94a (diff) | |
download | qtlocation-mapboxgl-606ad5622013b8dd36a1dcf6b0f05c4c321de3d3.tar.gz |
implement nested expression parsing
Diffstat (limited to 'bin')
-rw-r--r-- | bin/style.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/style.js b/bin/style.js index d851c1f16a..09fd7c0e67 100644 --- a/bin/style.js +++ b/bin/style.js @@ -263,8 +263,11 @@ module.exports = { "contour_label": { "source": "outdoors", "layer": "contour", - "field": "index", - "value": [5, 10], + "filter": [ + "and", + { "field": "index", "value": [ 5, 10 ] }, + { "field": "ele", "operator": "not", "value": 0 } + ], "path": "curve", "text_field": "{{ele}} m", "font": "Open Sans Regular, Arial Unicode MS Regular", |