0.2.2 • Published 5 years ago
nuxt-maps-module v0.2.2
nuxt-maps-module
Nuxt module allowing you to inject google maps javascript api to the project This repo was forked from https://github.com/WilliamDASILVA/nuxt-google-maps-module.
Include support to
runtimeConfig
Setup
- Add the
nuxt-maps-moduledependency withyarnornpmto your project - Add
nuxt-maps-moduleto themodulessection ofnuxt.config.js - Configure it:
{
modules: [
// Simple usage
'nuxt-maps-module',
// With options
['nuxt-maps-module', { /* module options */ }]
]
}Options
- key (String): maps key;
- libraries (Array): Google maps libraries
Using runtimeConfig
publicRuntimeConfig: {
gmaps: {
key: 'QAxefdneu...'
}
}Development
- Clone this repository
- Install dependencies using
yarn installornpm install - Start development server using
npm run dev