Closed martnst closed 6 months ago
Hey *,
How can I build a popup on hover with the nuxt wrapper? Here is the docs by Mapbox for it: https://docs.mapbox.com/mapbox-gl-js/example/popup-on-hover/
Cheers
Simplest way is to use the mouseenter & mouseleave events on your layer and copy the Mapbox implementation. https://alexlavoie42.github.io/Nuxt-Mapbox/usage/accessing-the-map#events
mouseenter
mouseleave
Hey *,
How can I build a popup on hover with the nuxt wrapper? Here is the docs by Mapbox for it: https://docs.mapbox.com/mapbox-gl-js/example/popup-on-hover/
Cheers