@ttoss/google-maps 2.0.8 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -121,7 +121,7 @@ const App = ({ children }) => {
121
121
 
122
122
  #### Returns
123
123
 
124
- - `ref`: React.RefObject<HTMLDivElement> - Reference to the map container.
124
+ - `ref`: `React.RefObject<HTMLDivElement>` - Reference to the map container.
125
125
  - `map`: google.maps.Map | null - Google Maps object.
126
126
 
127
127
  ### `useGoogleMaps`
package/dist/esm/index.js CHANGED
@@ -33,7 +33,7 @@ var GoogleMapsProvider = ({
33
33
  onError
34
34
  }) => {
35
35
  const src = (() => {
36
- let srcTemp = `https://maps.googleapis.com/maps/api/js?key=${apiKey}`;
36
+ let srcTemp = `https://maps.googleapis.com/maps/api/js?key=${apiKey}&loading=async`;
37
37
  if (libraries) {
38
38
  srcTemp = srcTemp + `&libraries=${libraries.join(",")}`;
39
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/google-maps",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "license": "MIT",
5
5
  "author": "ttoss",
6
6
  "contributors": [