AlexLavoie42 / Nuxt-Mapbox

Elegant Mapbox integration with Nuxt
81 stars 11 forks source link

fix: re-add layer on source reload #96

Closed Timo972 closed 6 months ago

Timo972 commented 6 months ago

as discussed in #95 this simple change should make layers persistent for all edge cases

logic before: if source does not exist, addLayer whenever source is being reloaded (ex. on map style change) logic now: addLayer whenever source is being reloaded