{"repo":"googlemaps/react-wrapper","free":true,"listed":false,"github":"https://github.com/googlemaps/react-wrapper","clone":"git clone https://github.com/googlemaps/react-wrapper.git","description":"Wrap React components with this libary to load the Google Maps JavaScript API.","language":"TypeScript","stars":381,"topics":["language-extension","google-maps","react"],"license":"Apache-2.0","category":"ui-components","readme_excerpt":"Google Maps JavaScript API React Wrapper [!IMPORTANT] This library has been archived. We recommend all users of this package to switch to the new @vis.gl/react-google-maps , which provides a collection of components and hooks and can be configured to be fully compatible with this package. See the migration guide for more details on how to switch from this package to @vis.gl/react-google-maps . Description Wrap React components with this library to load the Google Maps JavaScript API. The preceding example will not render any elements unless the Google Maps JavaScript API is successfully loaded. To handle error cases and the time until load is complete, it is recommended to provide render props. When combining children and render props, the children will render on success and the render prop will be executed for other status values. @googlemaps/js-api-loader This wrapper uses [@googlemaps/js-api-loader][js api loader] to load the Google Maps JavaScript API. This library uses a singleton pattern and will not attempt to load the library more than once. All options accepted by [@googlemaps/js-api-loader][js api loader] are also accepted as props to the wrapper component. MyMapComponent The following snippets demonstrates the usage of useRef and useEffect hooks with Google Maps. Examples See the examples folder for additional usage patterns. - Basic Demo Install Available via npm as the package @googlemaps/react-wrapper. or For TypeScript support additionally install type definiti","default_branch":null,"files":null,"tree":[],"storefront":"/r/googlemaps","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/googlemaps/react-wrapper/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}