Improves utility of Basemap Switcher component by providing a prop that allows devs to pass an array of layers and sources they want to preserve when switching mapbox styles. This is a fairly well-known issue with MapboxGL. We're still leaving the logic of how to define which layers should be preserved to the application devs, but this at least supports the basic use case.
Improves utility of Basemap Switcher component by providing a prop that allows devs to pass an array of layers and sources they want to preserve when switching mapbox styles. This is a fairly well-known issue with MapboxGL. We're still leaving the logic of how to define which layers should be preserved to the application devs, but this at least supports the basic use case.