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/multiple popups #23

Closed tannerjt closed 4 years ago

tannerjt commented 4 years ago

This fixes the underlying issue to allow multiple layers configured with popups. There is still a decision to be made about how to handle overlapping 'click' events with popups. Right now, it can be prioritized by the order of the popup layers property config. For example: [pointPopupConfig, polyPopupConfig] -> pointPopupConfig would display if both were clicked at once.

brambow commented 4 years ago

I think using the order of the layers array is fair for now. We can consider other options in a future version.