Open rogup opened 1 day ago
@wu-lee Please could you remind me of the reason for wanting to use the MapLibre component without a React binding, whilst we use React for the rest of the UI? Was it something about being able to separate the map code from the sidebar panel code in the future?
Looking at the popup methods for MapLibre, I'm wondering if this could be used to use React components for the popups in a way that isn't too messy and keeps fairly clean React and non-React separation https://maplibre.org/maplibre-gl-js/docs/API/classes/Popup/#setdomcontent
https://github.com/DigitalCommons/mykomap-monolith/blob/main/docs/architecture.md#possible-improvements
We should implement the first two bullet points of the improvements in the above doc, before all the UI gets plumbed in. The improvements are:
There are more details in the architecture doc itself