1.0.6-alpha • Published 2 years ago

nuxt-maps v1.0.6-alpha

Weekly downloads
47
License
MIT
Repository
github
Last release
2 years ago

Table of contents

Main features

  • Load Google Maps JavaScript API script only when required (once $gmaps() is called)
  • TypeScript support

Setup

  1. Add nuxt-maps dependency to your project:
npm install nuxt-maps
  1. Add nuxt-maps module and configuration to nuxt.config.js:
export default {
  // ...other config options
  modules: ["nuxt-maps"];
  maps: {
    apiKey: 'XXXXXXXXXXXXXXXXX',
  }
}
  1. (Optional) TypeScript support. Add nuxt-maps to the types section of tsconfig.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).