diff options
author | Eden Halperin <eden@mapbox.com> | 2014-06-01 11:13:15 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-06-02 11:14:10 +0200 |
commit | 2973d0b2b9eb88f66ef4f265fe391f43276f438a (patch) | |
tree | 7ec2903126f64cadd4ba335023afb2564cafc36f /bin | |
parent | dd4c8a67ba7610679f0049ebccce989eafc36ec0 (diff) | |
download | qtlocation-mapboxgl-2973d0b2b9eb88f66ef4f265fe391f43276f438a.tar.gz |
fix admin boundary buckets
Diffstat (limited to 'bin')
-rw-r--r-- | bin/style.js | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/bin/style.js b/bin/style.js index 09fd7c0e67..6e17b33381 100644 --- a/bin/style.js +++ b/bin/style.js @@ -14,8 +14,11 @@ module.exports = { "admin_l2": { "source": "outdoors", "layer": "admin", - "field": "admin_level", - "value": 2, + "filter": [ + "and", + {"field": "admin_level", "value": 2}, + {"field": "maritime", "operator": "not", "value": 1} + ], "join": "round", "cap": "round", "type": "line" @@ -23,11 +26,10 @@ module.exports = { "admin_l3": { "source": "outdoors", "layer": "admin", - "field": "admin_level", - "value": [ - 3, - 4, - 5 + "filter": [ + "and", + {"field": "admin_level", "value": [3,4,5]}, + {"field": "maritime", "operator": "not", "value": 1} ], "join": "round", "type": "line" |