@point-hub/google-maps-api

1.0.0 • Public • Published

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);
});

Readme

Keywords

none

Package Sidebar

Install

npm i @point-hub/google-maps-api

Weekly Downloads

8

Version

1.0.0

License

MIT

Unpacked Size

5.17 kB

Total Files

9

Last publish

Collaborators

  • martiendt