phegman / vue-mapbox-gl

A Vue.js component for Mapbox GL JS
GNU General Public License v3.0
270 stars 33 forks source link

mouseenter and mouseleave for fills #89

Closed lizziekarr closed 3 years ago

lizziekarr commented 3 years ago

so the example popup seems fairly simple, except my added layer has type fill, not type points

I tried @map-mouseenter:fills instead of @map-mouseenter:points but I'm not sure where to go from here.

Thanks for your help!

lizziekarr commented 3 years ago

Found the answer in the mapbox documentation - for anyone else who gets confused, the "fills" doesn't refer to a keyword, it's the source id