Add a Popup to the map.
Popup
Attach a popup to a marker and display it on click.
When a user hovers over a custom marker, show a popup containing more information.
When a user clicks a polygon, display a popup containing more information.
This example demonstrates using custom popups on top of a map because MapLibre's popups were originally quite limited in layout and style.