Is it possible to make a custom line layer that could have some kind of direction markers (for example arrows)? How could I achieve something like this for provided geojson route?
Right now I'm just using this to make a simple route line for an imported gpx file:
map.addLayer({
"id": "route",
"type": "line",
"source": {
"type": "geojson",
"data": path,
"lineMetrics": true
},
"layout": {
"line-join": "round",
"line-cap": "round"
},
"paint": {
//'line-color': 'red',
'line-width': 8,
},
});