summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-05-31 23:21:15 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-06-02 11:14:09 +0200
commit606ad5622013b8dd36a1dcf6b0f05c4c321de3d3 (patch)
tree59ec535aa3e1842cb143393f35a0af7bac4e1319 /bin
parent3bc5e0325395ba54db58b9f20159b253bd81f94a (diff)
downloadqtlocation-mapboxgl-606ad5622013b8dd36a1dcf6b0f05c4c321de3d3.tar.gz
implement nested expression parsing
Diffstat (limited to 'bin')
-rw-r--r--bin/style.js7
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",