Skip to content

Lazy load mapbox/pass mapbox object in #102

@ferk6a

Description

@ferk6a

So, I have a script to add the mapbox API to my app lazily. That means that it only gets added to the document once a specific view is added. 0.1.x versions of vue-mapbox allowed for a delayed Vue.use loading which made this work, however in 0.2.x, it directly imports mapbox-gl making this impossible.

This is a bit troublesome, but the dependency inversion principle in this case is very important.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions