|
117 | 117 | "zoom": 12.177865411775025,
|
118 | 118 | "bearing": 0,
|
119 | 119 | "pitch": 0,
|
| 120 | + "sprite": "arrows", |
120 | 121 | "sources": {
|
121 | 122 | "composite": {
|
122 | 123 | "url": "mapbox://mapbox.mapbox-terrain-v2,mapbox.mapbox-streets-v7",
|
|
5113 | 5114 | },
|
5114 | 5115 | "source-layer": "speeds",
|
5115 | 5116 | "interactive": true
|
| 5117 | + }, |
| 5118 | + { |
| 5119 | + "id": "osrm-0", "type": "symbol", "source": "osrm", "source-layer": "turns", |
| 5120 | + "layout": { "icon-image": "0", "icon-offset": [10,0], "icon-allow-overlap": true, "icon-rotate": { property: "bearing_in", stops: [[0, 0], [360, 360]] }, |
| 5121 | + "text-field": "{cost}", "text-offset": [2,0], "text-allow-overlap": true, "text-rotate": { property: "bearing_in", stops: [[0, 0], [360, 360]] } , |
| 5122 | + "text-size": { "base": 1, "stops": [ [ 10, 8 ], [ 18, 11 ] ] }, "text-font": [ "Arial Unicode MS Bold" ] }, |
| 5123 | + "paint": { |
| 5124 | + "icon-color" : "#ffffff", "icon-halo-color" : "#ffffff", "icon-halo-width" : 2, |
| 5125 | + "text-color": "hsl(0, 0%, 100%)", "text-halo-width": { "base": 1, "stops": [ [ 10, 10 ], [ 18, 13 ] ] }, "text-halo-color": "hsl(0, 0%, 0%)", "text-halo-blur": 0 |
| 5126 | + }, |
| 5127 | + "filter": ["all",[">=","turn_angle",-22.5],["<","turn_angle",22.5]] |
| 5128 | + }, |
| 5129 | + { |
| 5130 | + "id": "osrm-45", "type": "symbol", "source": "osrm", "source-layer": "turns", |
| 5131 | + "layout": { "icon-image": "45", "icon-offset": [20,20], "icon-allow-overlap": true, "icon-rotate": { property: "bearing_in", stops: [[0, 0], [360, 360]] }, |
| 5132 | + "text-field": "{cost}", "text-offset": [2,2], "text-allow-overlap": true, "text-rotate": { property: "bearing_in", stops: [[0, 0], [360, 360]] } , |
| 5133 | + "text-size": { "base": 1, "stops": [ [ 10, 8 ], [ 18, 11 ] ] }, "text-font": [ "Arial Unicode MS Bold" ]}, |
| 5134 | + "paint": { "icon-color" : "#ffffff", "icon-halo-color" : "#ffffff", "icon-halo-width" : 2, |
| 5135 | + "text-color": "hsl(0, 0%, 100%)", "text-halo-width": { "base": 1, "stops": [ [ 10, 10 ], [ 18, 13 ] ] }, "text-halo-color": "hsl(0, 0%, 0%)", "text-halo-blur": 0}, |
| 5136 | + "filter": ["all",[">=","turn_angle",22.5],["<","turn_angle",67.5]] |
| 5137 | + }, |
| 5138 | + { |
| 5139 | + "id": "osrm-90", "type": "symbol", "source": "osrm", "source-layer": "turns", |
| 5140 | + "layout": { "icon-image": "90", "icon-offset": [20,20], "icon-allow-overlap": true, "icon-rotate": { property: "bearing_in", stops: [[0, 0], [360, 360]] }, |
| 5141 | + "text-field": "{cost}", "text-offset": [2,2], "text-allow-overlap": true, "text-rotate": { property: "bearing_in", stops: [[0, 0], [360, 360]] } , |
| 5142 | + "text-size": { "base": 1, "stops": [ [ 10, 8 ], [ 18, 11 ] ] }, "text-font": [ "Arial Unicode MS Bold" ]}, |
| 5143 | + "paint": { "icon-color" : "#ffffff", "icon-halo-color" : "#ffffff", "icon-halo-width" : 2, |
| 5144 | + "text-color": "hsl(0, 0%, 100%)", "text-halo-width": { "base": 1, "stops": [ [ 10, 10 ], [ 18, 13 ] ] }, "text-halo-color": "hsl(0, 0%, 0%)", "text-halo-blur": 0}, |
| 5145 | + "filter": ["all",[">=","turn_angle",67.5],["<","turn_angle",115.5]] |
| 5146 | + }, |
| 5147 | + { |
| 5148 | + "id": "osrm-135", "type": "symbol", "source": "osrm", "source-layer": "turns", |
| 5149 | + "layout": { "icon-image": "135", "icon-offset": [20,20], "icon-allow-overlap": true, "icon-rotate": { property: "bearing_in", stops: [[0, 0], [360, 360]] }, |
| 5150 | + "text-field": "{cost}", "text-offset": [2,2], "text-allow-overlap": true, "text-rotate": { property: "bearing_in", stops: [[0, 0], [360, 360]] } , |
| 5151 | + "text-size": { "base": 1, "stops": [ [ 10, 8 ], [ 18, 11 ] ] }, "text-font": [ "Arial Unicode MS Bold" ]}, |
| 5152 | + "paint": { "icon-color" : "#ffffff", "icon-halo-color" : "#ffffff", "icon-halo-width" : 2, |
| 5153 | + "text-color": "hsl(0, 0%, 100%)", "text-halo-width": { "base": 1, "stops": [ [ 10, 10 ], [ 18, 13 ] ] }, "text-halo-color": "hsl(0, 0%, 0%)", "text-halo-blur": 0}, |
| 5154 | + "filter": ["all",[">=","turn_angle",115.5],["<","turn_angle",180]] |
| 5155 | + }, |
| 5156 | + { |
| 5157 | + "id": "osrm-n135", "type": "symbol", "source": "osrm", "source-layer": "turns", |
| 5158 | + "layout": { "icon-image": "n135", "icon-offset": [20,40], "icon-allow-overlap": true, "icon-rotate": { property: "bearing_in", stops: [[0, 0], [360, 360]] }, |
| 5159 | + "text-field": "{cost}", "text-offset": [2,4], "text-allow-overlap": true, "text-rotate": { property: "bearing_in", stops: [[0, 0], [360, 360]] } , |
| 5160 | + "text-size": { "base": 1, "stops": [ [ 10, 8 ], [ 18, 11 ] ] }, "text-font": [ "Arial Unicode MS Bold" ]}, |
| 5161 | + "paint": { "icon-color" : "#ffffff", "icon-halo-color" : "#ffffff", "icon-halo-width" : 2, |
| 5162 | + "text-color": "hsl(0, 0%, 100%)", "text-halo-width": { "base": 1, "stops": [ [ 10, 10 ], [ 18, 13 ] ] }, "text-halo-color": "hsl(0, 0%, 0%)", "text-halo-blur": 0}, |
| 5163 | + "filter": ["all",["<=","turn_angle",-115.5],[">","turn_angle",-180]] |
| 5164 | + }, |
| 5165 | + { |
| 5166 | + "id": "osrm-n90", "type": "symbol", "source": "osrm", "source-layer": "turns", |
| 5167 | + "layout": { "icon-image": "n90", "icon-offset": [20,40], "icon-allow-overlap": true, "icon-rotate": { property: "bearing_in", stops: [[0, 0], [360, 360]] }, |
| 5168 | + "text-field": "{cost}", "text-offset": [2,4], "text-allow-overlap": true, "text-rotate": { property: "bearing_in", stops: [[0, 0], [360, 360]] } , |
| 5169 | + "text-size": { "base": 1, "stops": [ [ 10, 8 ], [ 18, 11 ] ] }, "text-font": [ "Arial Unicode MS Bold" ]}, |
| 5170 | + "paint": { "icon-color" : "#ffffff", "icon-halo-color" : "#ffffff", "icon-halo-width" : 2, |
| 5171 | + "text-color": "hsl(0, 0%, 100%)", "text-halo-width": { "base": 1, "stops": [ [ 10, 10 ], [ 18, 13 ] ] }, "text-halo-color": "hsl(0, 0%, 0%)", "text-halo-blur": 0}, |
| 5172 | + "filter": ["all",["<=","turn_angle",-67.5],[">","turn_angle",-115.5]] |
| 5173 | + }, |
| 5174 | + { |
| 5175 | + "id": "osrm-n45", "type": "symbol", "source": "osrm", "source-layer": "turns", |
| 5176 | + "layout": { "icon-image": "n45", "icon-offset": [20,40], "icon-allow-overlap": true, "icon-rotate": { property: "bearing_in", stops: [[0, 0], [360, 360]] }, |
| 5177 | + "text-field": "{cost}", "text-offset": [2,4], "text-allow-overlap": true, "text-rotate": { property: "bearing_in", stops: [[0, 0], [360, 360]] } , |
| 5178 | + "text-size": { "base": 1, "stops": [ [ 10, 8 ], [ 18, 11 ] ] }, "text-font": [ "Arial Unicode MS Bold" ]}, |
| 5179 | + "paint": { "icon-color" : "#ffffff", "icon-halo-color" : "#ffffff", "icon-halo-width" : 2 , |
| 5180 | + "text-color": "hsl(0, 0%, 100%)", "text-halo-width": { "base": 1, "stops": [ [ 10, 10 ], [ 18, 13 ] ] }, "text-halo-color": "hsl(0, 0%, 0%)", "text-halo-blur": 0}, |
| 5181 | + "filter": ["all",["<=","turn_angle",-22.5],[">","turn_angle",-67.5]] |
5116 | 5182 | }
|
5117 | 5183 | ],
|
5118 | 5184 | "created": "2016-03-14T20:42:54.687Z",
|
|
0 commit comments