nuxt-maps-module
v0.2.2
Published
NuxtJS module to import Google Maps
Downloads
21
Readme
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-module
dependency withyarn
ornpm
to your project - Add
nuxt-maps-module
to themodules
section 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 install
ornpm install
- Start development server using
npm run dev