A lightweight Google Maps plugin for Vue 2
npm install x5-gmapsbash
npm
npm install x5-gmaps
`
Deployment
This plugin can be installed like any Vue plugin:
`js
import x5GMaps from 'x5-gmaps';
// Option 1: Just your key
Vue.use(x5GMaps, 'YOUR_GOOGLE_KEY');
// Option 2: With libraries
Vue.use(x5GMaps, { key: 'YOUR_GOOGLE_KEY', libraries: ['places'] });
new Vue({
el: '#app',
render: h => h(App)
});
`
Usage
`html
`
`js
import { gmapsMap, gmapsMarker } from 'x5-gmaps';
export default {
components: { gmapsMap, gmapsMarker }
};
``