DigitalCommons / mykomap-monolith

A web application for mapping initiatives in the Solidarity Economy
0 stars 0 forks source link

[CWM] Restructure front-end architecture #13

Open rogup opened 1 day ago

rogup commented 1 day ago

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

rogup commented 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?

rogup commented 1 day ago

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