diff options
author | Ansis Brammanis <ansis.brammanis@gmail.com> | 2014-05-30 03:50:25 -0400 |
---|---|---|
committer | Ansis Brammanis <ansis.brammanis@gmail.com> | 2014-05-30 03:50:25 -0400 |
commit | 7c653895c6f6f7dc07241031277610efb439a243 (patch) | |
tree | 51773298130f367e427a03decdec1f2582d8dbd0 /bin/style.js | |
parent | 41c310c76238d3a2823c79592b553a6ff3205c47 (diff) | |
download | qtlocation-mapboxgl-7c653895c6f6f7dc07241031277610efb439a243.tar.gz |
translate as a text bucket property
When used, text is translated before being checked for collisions.
Diffstat (limited to 'bin/style.js')
-rw-r--r-- | bin/style.js | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/bin/style.js b/bin/style.js index 38ffd7c327..3d24d6e79c 100644 --- a/bin/style.js +++ b/bin/style.js @@ -765,8 +765,7 @@ module.exports = { "path": "horizontal", "font": "Open Sans Semibold, Arial Unicode MS Bold", "fontSize": 18, - "maxWidth": 2, - "lineHeight": 1.4, + "maxWidth": 6, "feature_type": "point", "type": "text" }, @@ -880,6 +879,9 @@ module.exports = { "text_field": "name", "path": "horizontal", "padding": 2, + "maxWidth": 8, + "verticalAlignment": "top", + "translate": [0, -1], "font": "Open Sans Semibold, Arial Unicode MS Bold", "fontSize": 11, "feature_type": "point", @@ -893,6 +895,9 @@ module.exports = { "text_field": "name", "path": "horizontal", "padding": 2, + "maxWidth": 8, + "verticalAlignment": "top", + "translate": [0, -1], "font": "Open Sans Semibold, Arial Unicode MS Bold", "fontSize": 10, "feature_type": "point", @@ -906,6 +911,9 @@ module.exports = { "text_field": "name", "path": "horizontal", "padding": 2, + "maxWidth": 8, + "verticalAlignment": "top", + "translate": [0, -1], "font": "Open Sans Semibold, Arial Unicode MS Bold", "fontSize": 10, "feature_type": "point", @@ -2417,7 +2425,6 @@ module.exports = { "stroke": "land", "strokeWidth": 0.3, "strokeBlur": 1, - "translate": [0, 14] }, "poi_label_3": { "color": "#444", @@ -2425,7 +2432,6 @@ module.exports = { "stroke": "land", "strokeWidth": 0.3, "strokeBlur": 1, - "translate": [0, 14], "opacity": [ "stops", {"z": 16.5, "val": 0}, @@ -2443,7 +2449,6 @@ module.exports = { "stroke": "land", "strokeWidth": 0.3, "strokeBlur": 1, - "translate": [0, 14] }, "poi_aerodrome": { "opacity": ["stops", @@ -3169,7 +3174,6 @@ module.exports = { "stroke": "text2_stroke_night", "strokeWidth": 0.3, "strokeBlur": 1, - "translate": [0, 14] }, "poi_label_3": { "color": "#fff", @@ -3177,7 +3181,6 @@ module.exports = { "stroke": "text2_stroke_night", "strokeWidth": 0.3, "strokeBlur": 1, - "translate": [0, 14], "opacity": [ "stops", {"z": 16.5, "val": 0}, @@ -3195,7 +3198,6 @@ module.exports = { "stroke": "text2_stroke_night", "strokeWidth": 0.3, "strokeBlur": 1, - "translate": [0, 14] }, "poi_aerodrome": { "opacity": ["stops", |