brambow / elements

Themeable React components for map-based web applications
https://cartolab-gis.github.io/elements/
MIT License
69 stars 11 forks source link

Feature/basemap switcher improvements #58

Closed brambow closed 3 years ago

brambow commented 3 years ago

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.