You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,6 @@ Available via npm as the package [@googlemaps/js-api-loader](https://www.npmjs.c
19
19
npm i @googlemaps/js-api-loader
20
20
```
21
21
22
-
or
23
-
24
-
```sh
25
-
yarn add @googlemaps/js-api-loader
26
-
```
27
-
28
22
Alternatively you may add the umd package directly to the html document using the unpkg link.
29
23
30
24
```html
@@ -33,6 +27,14 @@ Alternatively you may add the umd package directly to the html document using th
33
27
34
28
When adding via unpkg, the loader can be accessed at `google.maps.plugins.loader.Loader`.
35
29
30
+
### TypeScript
31
+
32
+
TypeScript users need to install the following types package.
33
+
34
+
```sh
35
+
npm i -D @types/google.maps
36
+
```
37
+
36
38
## Documentation
37
39
38
40
The reference documentation can be found at this [link](https://googlemaps.github.io/js-api-loader/index.html). The Google Maps JavaScript API [documentation](https://developers.google.com/maps/documentation/javascript/tutorial) is the authoritative source for the loader options.
0 commit comments