@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 +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -121,7 +121,7 @@ const App = ({ children }) => {
|
|
|
121
121
|
|
|
122
122
|
#### Returns
|
|
123
123
|
|
|
124
|
-
- `ref`: React.RefObject<HTMLDivElement
|
|
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
|
}
|