phegman / vue-mapbox-gl

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

v-if not followed while tiles are loading #66

Closed runshotgun closed 5 years ago

runshotgun commented 5 years ago

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.

phegman commented 5 years ago

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