mapbox-gl-directions icon indicating copy to clipboard operation
mapbox-gl-directions copied to clipboard

Map SetStyle removes direction polyline

Open mapsensedev opened this issue 3 years ago • 1 comments

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

mapsensedev avatar Sep 22 '21 18:09 mapsensedev

I solved it by using doing this

mithun-halo avatar Nov 12 '21 18:11 mithun-halo