mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 02:41:09 +00:00
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:
committed by
GitHub
parent
efb2f8c14c
commit
606f79d483
@@ -381,6 +381,7 @@ function MaplibreMap(props: { file: PMTiles }) {
|
||||
const popup = new maplibregl.Popup({
|
||||
closeButton: false,
|
||||
closeOnClick: false,
|
||||
maxWidth: 'none',
|
||||
});
|
||||
|
||||
mapRef.current = map;
|
||||
|
||||
Reference in New Issue
Block a user