visgl / react-map-gl

React friendly API wrapper around MapboxGL JS
http://visgl.github.io/react-map-gl/
Other
7.88k stars 1.35k forks source link

Popup is not displayed after upgrading to v.7 #2432

Closed an-dekhtyar closed 1 month ago

an-dekhtyar commented 1 month ago

Description

Снимок экрана от 2024-10-10 13-08-44

After update libs "mapbox-gl": "3.7.0", "react-map-gl": "7.1.7",

The popup is no longer displayed on the map. Popup without any special styles. Text. At the input it receives longitude and latitude offset and anchor. But in the structure it’s like outside the browser window. I created a Marker next to it with the same coordinates and props. It is displayed correctly.

Expected Behavior

No response

Steps to Reproduce

create popup

Environment

Logs

No response

Pessimistress commented 1 month ago

https://visgl.github.io/react-map-gl/docs/get-started#styling

elC0mpa commented 3 weeks ago

I have the same problem with the same version and I included the styles in this way: import "maplibre-gl/dist/maplibre-gl.css";

` return (

{!!popupData ? ( setPopupData(undefined)} > ) : null} {inventoryMarkers} {workshopMarkers}

); }`

The first time I click the marker the popupShows But after that it doesnǘt show anymore

Any idea?