react-map-gl icon indicating copy to clipboard operation
react-map-gl copied to clipboard

[Bug] Resizing the window, bugs the Popup's position.

Open uzun0ff opened this issue 9 months ago • 1 comments

Description

Hello, I've been trying to figure out how to fix this behaviour of the Popup but can't find the right solution, any help will be greatly appreciated.

Here's a recording on the issue:

https://github.com/user-attachments/assets/743edbf9-7d2c-4ab4-a9e0-1375819a09ae

Expected Behavior

The Popup should stay on the same position on the map, regardless of window size.

Steps to Reproduce

Resize the window when the Popup is displayed.

Environment

  • Framework version: "react-map-gl": "^7.0.21"
  • Map library: "mapbox-gl": "^2.12.0",
  • Browser: Arc / Chrome
  • OS: MacOS Sonoma 14.6.1 (23G93)

Logs

No response

uzun0ff avatar Mar 17 '25 15:03 uzun0ff

I do not observe any issue with https://visgl.github.io/react-map-gl/examples/mapbox/controls

Please provide actual code that can be used to reproduce your issue.

Pessimistress avatar Mar 22 '25 02:03 Pessimistress