Remove max-width for tooltips

The Maplibre docs say that `options.maxWidth` is "A string that sets the CSS property of the popup's maximum width, eg '300px' . To ensure the popup resizes to fit its content, set this property to 'none'"

https://maplibre.org/maplibre-gl-js-docs/api/markers/#popup
This commit is contained in:
James Scott-Brown
2023-05-15 15:17:00 +01:00
committed by GitHub
parent efb2f8c14c
commit 606f79d483

View File

@@ -381,6 +381,7 @@ function MaplibreMap(props: { file: PMTiles }) {
const popup = new maplibregl.Popup({
closeButton: false,
closeOnClick: false,
maxWidth: 'none',
});
mapRef.current = map;