adds caret layer for preview layer
This commit is contained in:
@@ -75,6 +75,34 @@ export class PreviewLayer implements BaseLayer {
|
|||||||
"circle-stroke-width": 2,
|
"circle-stroke-width": 2,
|
||||||
"circle-stroke-color": "#fff",
|
"circle-stroke-color": "#fff",
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "preview-direction-carets",
|
||||||
|
type: "symbol",
|
||||||
|
source: "preview",
|
||||||
|
minzoom: 10,
|
||||||
|
layout: {
|
||||||
|
"symbol-placement": "line",
|
||||||
|
"symbol-spacing": [
|
||||||
|
"interpolate",
|
||||||
|
["exponential", 1.5],
|
||||||
|
["zoom"],
|
||||||
|
0,
|
||||||
|
80,
|
||||||
|
18,
|
||||||
|
200,
|
||||||
|
],
|
||||||
|
"icon-image": "direction-caret",
|
||||||
|
"icon-size": [
|
||||||
|
"interpolate",
|
||||||
|
["exponential", 1.5],
|
||||||
|
["zoom"],
|
||||||
|
0,
|
||||||
|
0.5,
|
||||||
|
18,
|
||||||
|
0.8,
|
||||||
|
],
|
||||||
|
},
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user