brambow / elements

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

fix: create new popup instance if map instance changes #55

Closed tannerjt closed 3 years ago

tannerjt commented 3 years ago

The issue was that when Elements parent context changed, the map instance become stale because of the singleton design pattern for popups. This recreates the popup instance when it recognizes the map object used to create it originally is no longer the same.