ubilabs / google-maps-react-hooks

The JavaScript library to easily implement a Google Maps map into your react application. It comes with a collection of React hooks to access the map instance or different Maps JavaScript Services.
MIT License
77 stars 13 forks source link

Google Maps JavaScript API async load help required. #146

Open sultanularefin opened 4 months ago

sultanularefin commented 4 months ago

google_map_issue_github_

Hi I am this package in some of my projects. I find this package underrated, anyway need help for below issues:

1) Google Maps JavaScript API has been loaded directly without loading=async. This can result in suboptimal performance. For best-practice loading patterns please see https://goo.gle/js-api-loading The above issue may cause rendering problem when deployed to the server sometimes.

2) (optional) As of February 21st, 2024, google.maps.Marker is deprecated. Please use google.maps.marker.AdvancedMarkerElement instead. Please see https://developers.google.com/maps/deprecations for deprecation details.

TiagoSousa123 commented 3 weeks ago

+1 for the loading=async.