Socket
Socket
Sign inDemoInstall

nuxt-google-maps-module

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-google-maps-module

NuxtJS module to import Google Maps


Version published
Weekly downloads
557
increased by34.54%
Maintainers
1
Weekly downloads
 
Created
Source

Nuxt Google Maps Module

npm (scoped with tag) npm js-airbnb-style

A NuxtJS module to import Google maps script

Table of Contents

Requirements

  • npm
  • NuxtJS
  • NodeJS

Install

$ npm install --save nuxt-google-maps-module

Getting Started

Add nuxt-google-maps-module to modules section of nuxt.config.js.

{
  modules: [
    // Simple usage
    'nuxt-google-maps-module',

    // With options
    ['nuxt-google-maps-module', {
      /* module options */
      key: 'GOOGLE MAPS KEY', // Default
    }],
 ]
}

or even

{
  modules: [
    'nuxt-google-maps-module',
  ],
  maps: {
    key: 'GOOGLE MAPS KEY',
  },
}

Usage

Once configured in nuxt.config.js, you can use it in your components like:

{
  ...
  mounted() {
    const autocomplete = new this.$google.maps.places.Autocomplete(inputElement,
      {
        types: ['geocode'],
      },
    );
  },
  ...
}

License

MIT License

FAQs

Package last updated on 06 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc