mapbox-gl-directions
mapbox-gl-directions copied to clipboard
Map SetStyle removes direction polyline
When switching basemap using setStyle all the layers are removed including any directions polyline. Is the directions control has been added to the map then the map should retain the directions polyline. The developer should not have to add these as these capabilities come out of the box with directions implementation
I solved it by using doing this