Skip to content

Conversation

@sjoerdbeentjes
Copy link
Collaborator

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.

@SiggyF
Copy link
Collaborator

SiggyF commented Dec 12, 2019

Looks good. Can you also add a test in the .storybook?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants