phegman / vue-mapbox-gl

A Vue.js component for Mapbox GL JS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v-if not followed while tiles are loading

runshotgun opened this issue · comments

I'm trying to update the visibility of a MglGeojsonLayer with a v-if and if the map is loading tiles, the value is not listened properly.

If set to true, the layer shows regardless
If set to false, the layer remains visible and will remain that way until I manually toggle it again.

I believe this issue is related to the other Vue Mapbox component here: https://github.com/soal/vue-mapbox