Open otiagovicente opened 7 years ago
Hey, i have the same problem. Great Solution. However, it would be nice if Vue Google Maps do it natively. thank you for the awesome wrapper.
What kind of components are these?
MapComponent
. (However, they have to be descendents of the Map instance.Vue.component('someComponent', MapComponent.extend({
deferredReady() {
console.log(this.$map)
}
})
loaded
method:import {loaded} from 'vue-google-maps'
loaded.then(() => {
console.log(google.maps)
})
I'm using vue-google-maps in a large application, and i have to test in every component if maps are already loaded. I can handle this with this:
However, it would be nice if Vue Google Maps do it. It would not affect any other on production applications. This is my suggestion, thank you for the awesome wrapper, it makes living worth.