hpneo / gmaps

the easiest way to use Google Maps
https://hpneo.dev/gmaps/
7.04k stars 1.29k forks source link

GMaps Webpack support? #572

Closed einnar82 closed 6 years ago

einnar82 commented 6 years ago

How to implement Gmaps in webpack and vue?

einnar82 commented 6 years ago

I already solved the issue :)

`new Vue({ el: '#foo', data: {

}, created() { const createScript = document.createElement('script');
createScript.setAttribute('src',https://maps.googleapis.com/maps/api/js?key=${this.apiKeys.google}); createScript.setAttribute('async', ''); createScript.setAttribute('defer', ''); document.body.appendChild(createScript); } })`