You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a change is made to props.data between setup() and map load, the source isn't initialized, so the watch doesn't call setData(), and the inner MGL source doesn't get updated with the new data from the prop.
We ran into this with the GeoJSON source but it should affect most of the other sources which use this watch() + source.setX() pattern.
The text was updated successfully, but these errors were encountered:
Hey, thanks for your work on this library!
vue-maplibre-gl/lib/components/sources/geojson.source.ts
Lines 53 to 78 in 7958f88
If a change is made to props.data between
setup()
and map load, the source isn't initialized, so the watch doesn't callsetData()
, and the inner MGL source doesn't get updated with the new data from the prop.We ran into this with the GeoJSON source but it should affect most of the other sources which use this
watch()
+source.setX()
pattern.The text was updated successfully, but these errors were encountered: