Skip to content

Latest commit

 

History

History
76 lines (54 loc) · 1.46 KB

README.md

File metadata and controls

76 lines (54 loc) · 1.46 KB

nuxt-maps

NuxtJS module for Google Maps


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).