Closed queeringthemap closed 5 months ago
Apologies for the lack of clarity here, what I meant by this was:
Centering the body of the pop-up to the pop-up triangle anchor, so that it looks the same as the current design.
Would centering the pin (when clicked) relative to the map help make this simpler?
I can imagine it also prevents the problem of a popup being rendered off-map partially.
I've implemented this in https://github.com/radical-data/queering-the-map/pull/54 with one-line.
We could center the map on clicked pins but it requires an extra bit of work (would be worth distinguishing between desktop and mobile because it would be weird to do on desktop but could be nice for mobile). The underlying bit of it is simple though: https://maplibre.org/maplibre-gl-js/docs/examples/center-on-symbol/.
Could you give more detail what we mean by this issue @queeringthemap?