Create a hover effect
Create a hover effect for individual map features by utilizing events and feature states. This allows you to highlight specific elements on the map when they are hovered over by the user.
Related examples
An extension of MapLibre GL JS