Closed dmestudent closed 7 months ago
There were some changes to the default handling of attribution in Maplibre 4.0 perhaps this is why
Thank you for the issue, I also noticed this when setting up a new project yesterday. We will take a look at it and fix this.
I already found the cause. In the versions before 1.0.0 we imported maplibre-gl.css in the MapLibreMap component. That was commented out to rule it out as a cause for the failing bundler command after the major rollup release upgrade.
We will put this back in in the next release.
Until then a quick fix would be to add this line to your application import 'maplibre-gl/dist/maplibre-gl.css';
Fixed in version 1.0.3
The changes to the attribution API in MapLibre 4.0 involve that it is enabled by default and the removal of customAttribution prop from AttributionControl. https://github.com/maplibre/maplibre-gl-js/blob/main/CHANGELOG.md#400
@mapcomponents/react-maplibre version: >=1.0.0
Steps To Reproduce
The current behavior
Styles are missing for maplibregl-ctrl-bottom-right causing an unstyled container rendered below the map
The expected behavior
maplibregl-ctrl-bottom-right is styled properly and sits as an overlay on the map
I manually checked the last released versions and this error started appearing since version 1.0.0
Best regards