@ttoss/google-maps 2.0.3 → 2.0.4
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 +5 -3
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Install `@ttoss/google-maps` in your project:
|
|
8
8
|
|
|
9
9
|
```shell
|
|
10
|
-
$ pnpm
|
|
10
|
+
$ pnpm add @ttoss/google-maps
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
If you use TypeScript, add the following to a declaration file (generally `typings.d.ts`):
|
|
@@ -16,7 +16,9 @@ If you use TypeScript, add the following to a declaration file (generally `typin
|
|
|
16
16
|
/// <reference types="google.maps" />
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## How to Use
|
|
20
|
+
|
|
21
|
+
### Configuring `GoogleMapsProvider`
|
|
20
22
|
|
|
21
23
|
At the root of your application, configure `GoogleMapsProvider` with your Google Maps API key. This way, the whole application can access the `google` variable.
|
|
22
24
|
|
|
@@ -34,7 +36,7 @@ const App = ({ children }) => {
|
|
|
34
36
|
};
|
|
35
37
|
```
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
### Rendering the Map
|
|
38
40
|
|
|
39
41
|
At the component level, render Google Maps using `useMap` hook:
|
|
40
42
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/google-maps",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"author": "ttoss",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Pedro Arantes <pedro@arantespp.com> (https://arantespp.com/contact)",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"src"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@types/google.maps": "^3.
|
|
27
|
-
"use-callback-ref": "^1.3.
|
|
26
|
+
"@types/google.maps": "^3.58.1",
|
|
27
|
+
"use-callback-ref": "^1.3.2",
|
|
28
28
|
"@ttoss/react-hooks": "^2.0.3"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"jest": "^29.7.0",
|
|
37
37
|
"react": "^18.3.1",
|
|
38
38
|
"tsup": "^8.3.0",
|
|
39
|
-
"@ttoss/
|
|
40
|
-
"@ttoss/
|
|
39
|
+
"@ttoss/test-utils": "^2.1.16",
|
|
40
|
+
"@ttoss/config": "^1.34.0"
|
|
41
41
|
},
|
|
42
42
|
"keywords": [
|
|
43
43
|
"Google",
|