Currently it is not possible to add layers dynamically, because deferredMountedTo only gets called on initialisation of the map. In this PR the (re)rendering is handled internaly in the v-mapbox-layer component, by either calling mounted or deferredMountedTo. When the layer is loaded later than the map is initialised, it usesmounted, otherwise deferredMountedTo.
Currently it is not possible to add layers dynamically, because deferredMountedTo only gets called on initialisation of the map. In this PR the (re)rendering is handled internaly in the
v-mapbox-layer
component, by either callingmounted
ordeferredMountedTo
. When the layer is loaded later than the map is initialised, it usesmounted
, otherwisedeferredMountedTo
.