Closed Theo-Rige closed 5 months ago
I think this event just got missed, although there may have been a good reason to not have it that I can't remember. I will try to add it for the next update.
For now you can do this:
useMapboxBeforeLoad(MAP_ID, (map) => {
map.on('style.load', () => {...})
})
How can I use the 'style.load' event : https://docs.mapbox.com/mapbox-gl-js/api/map/#map.event:style.load ?