Skip to content

Commit

Permalink
fix order warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nvkelso committed May 25, 2017
1 parent 8eb4a49 commit 57a110b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/globals.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ global:
order_add_3: function () { return (feature.sort_rank * 20 + 3); }
order_add_2: function () { return (feature.sort_rank * 20 + 2); }
order_add_1: function () { return (feature.sort_rank * 20 + 1); }
order: function () { return (feature.sort_rank * 20); }
order: function () { return (feature.sort_rank * 20) || 0; }
order_sub_1: function () { return (feature.sort_rank * 20 - 1); }
order_sub_2: function () { return (feature.sort_rank * 20 - 2); }
order_sub_3: function () { return (feature.sort_rank * 20 - 3); }
Expand Down
4 changes: 3 additions & 1 deletion layers/roads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ layers:
draw:
lines:
style: lines-traffic-animation
order: global.order
color: [0.086,0.135,0.260]
width: [[8,0px],[9,0.25px],[10,1px],[12,1px],[13,2px],[14,3px],[15,5px],[16,5px],[17,9px],[18,16px],[19,12px]]
outline:
Expand All @@ -96,6 +97,8 @@ layers:
# color: [0.800,1.000,0.987]
color: [0.000,0.535,0.630]
width: [[11,8px],[13,12px],[16,30px],[17,40px],[18,50px],[19,80px]]
highway-casing:
order: global.order

highway-link:
filter: { is_link: true } # on- and off-ramps, etc
Expand All @@ -113,7 +116,6 @@ layers:
highway-glow:
visible: false


highway-link-early:
filter: { $zoom: { min: 13, max: 15 } }
draw:
Expand Down

0 comments on commit 57a110b

Please sign in to comment.