1.0.6-alpha • Published 3 years ago
nuxt-maps v1.0.6-alpha
Table of contents
Main features
- Load Google Maps JavaScript API script only when required (once
$gmaps()is called) - TypeScript support
Setup
- Add
nuxt-mapsdependency to your project:
npm install nuxt-maps- Add
nuxt-mapsmodule and configuration tonuxt.config.js:
export default {
// ...other config options
modules: ["nuxt-maps"];
maps: {
apiKey: 'XXXXXXXXXXXXXXXXX',
}
}- (Optional) TypeScript support. Add
nuxt-mapsto thetypessection oftsconfig.json:
{
"compilerOptions": {
"types": ["nuxt-maps"]
}
}Options
apiKey
- Type:
String
Your Google API Key.
i18n
- Type:
Boolean - Default:
false
Enable i18n-module integration.
Usage
...
License
See the LICENSE file for license rights and limitations (MIT).
1.0.6-alpha
3 years ago
1.0.5-alpha
3 years ago
1.0.4-alpha
4 years ago
1.0.3-alpha
4 years ago
1.0.2-alpha
5 years ago
1.0.1-alpha
5 years ago
1.0.0-alpha
5 years ago