mapbox-gl-directions
mapbox-gl-directions copied to clipboard
Waypoint style
Can't see waypoints on map, even while overriding style.
var mapDirections = new MapboxDirections({ // eslint-disable-line no-undef
accessToken: mapboxgl.accessToken, // eslint-disable-line no-undef
unit: 'metric',
profile: 'mapbox/cycling',
interactive: false,
controls: {
inputs: false,
instructions: false,
profileSwitcher: false,
},
styles: [
{
'id': 'directions-waypoint-point',
'type': 'circle',
'source': 'directions',
'paint': {
'circle-radius': 60,
'circle-color': '#fa8bc9',
},
'filter': [
'all',
['in', '$type', 'Point'],
['in', 'id', 'waypoint'],
],
}
],
})
I think it does't support display waypiont
+1 for this issue.