Socket
Socket
Sign inDemoInstall

@point-hub/google-maps-api

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @point-hub/google-maps-api

Google Map API promise


Version published
Weekly downloads
11
increased by10%
Maintainers
1
Install size
315 kB
Created
Weekly downloads
 

Readme

Source

Vue 3 Google Maps API

Provides a convenient wrapper for the Google Maps API, allowing it to be called in the promise syntax.

Installation

npm install --save @point-hub/google-maps-api

or

yarn add @point-hub/google-maps-api

Usage

  1. Get your API key from Google https://developers.google.com/maps/documentation/javascript/get-api-key

  2. Use it in your app

var GoogleMapsApi = require('@point-hub/google-maps-api');

GoogleMapsApi({
  libraries: ['places'],
  apiKey: 'replace-this-with-your-api-key'
})
.then(function(googleApi) {
  var autocomplete = new googleApi.maps.places.AutocompleteService();
}, function(err) {
  console.error(err);
});

FAQs

Last updated on 23 Nov 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc