2.2.0 • Published 3 years ago
@p803/google-maps-api v2.2.0
Google Maps API for JavaScript
This repository contains a JavaScript package that allows you to access the Google Maps JavaScript API from your JavaScript project.
Installation
This package can be installed with npm. Run this command:
npm install @p803/google-maps-api
or use the standalone format:
<script src="https://unpkg.com/@p803/google-maps-api"></script>
Usage
Simple example of creating an autocomplete object.
// Import the package.
import googleMapsApi from '@p803/google-maps-api' // node
// const googleMapsApi = window.p803.googleMapsApi // browser
// Set api parameters.
googleMapsApi.params = {
key: '{google-maps-api-key}', // required
libraries: ['places', 'geometry'], // optional
// other params...
}
// Grab the api.
const api = await googleMapsApi()
// Create autocomplete object.
const autocomplete = new api.places.Autocomplete(/** params */);
2.2.0
3 years ago
2.1.0
3 years ago
2.0.2
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.2.0
4 years ago
1.1.0
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.0.10
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago