use-google-maps-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

use-google-maps-sdk

A react hook that wraps the Google Maps SDK.

npm install use-google-maps-sdk

Supported Methods

Currently limited to the JS SDK and a handful of methods.

import {
  useGoogleMapsSDK,
  usePlacesAutocompleteService,
  usePlacesAutocompleteSessionToken,
  usePlacePredictions
} from 'use-google-maps-sdk

Support will expand to include all methods that can be represented as a hook.

usePlacePredictions

usePlacePredictions improves on the SDK by ignoring out of order updates. The native SDK offers no resolution guarantees — when using the hook prediction results will always represent the most recent input for which we've resolved a response.

License

MIT Licensed

Package Sidebar

Install

npm i use-google-maps-sdk

Weekly Downloads

1

Version

0.0.6

License

MIT

Unpacked Size

65.4 kB

Total Files

17

Last publish

Collaborators

  • evanrs