Description
In discussions with @shepazu, he convinced us that an interactive popup for maps is likely to be one of the most difficult things to negotiate with browser developers, since it is a complex topic with accessibility requirements that likely needs to extend beyond maps use cases. Furthermore, there are discussions happening in the HTML standard that suggest a popup might become an element supported by browsers independent of maps, so maps could work towards using the results of that work and not duplicating it.
So, in accordance with that thinking, this issue is for discussion of the idea of removing a map-based popup, and replacing it with a popup event. The idea would be that the function that handles the event could create a UI appropriate to its needs, a sidebar, a toast, a popup, whatever was considered appropriate by the author. In this project we could develop a small library to handle the popup event to fit the needs of a demonstration.
Further, it may provide us opportunities for enhancing the interactivity of features returned by query links, for example, which could be used not only for popups (as they currently are, exclusively) but also for links. Currently a feature geometry can be a link, or it can have a popup, but not both; we are working on a way to return a feature with a link (by default there's currently always a popup).