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
+11
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,9 @@ npm i -D @types/google.maps
39
39
40
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.
41
41
42
+
## Internal usage attribution ID
43
+
44
+
This library uses `internalUsageAttributionIds`, which helps Google understand which libraries and samples are helpful to developers and is optional. Instructions for opting out of the identifier are provided in reference documentation.
42
45
43
46
## Example
44
47
@@ -59,6 +62,14 @@ const mapOptions = {
59
62
zoom:4
60
63
};
61
64
65
+
// Adds a usage attribution ID to the initializer, which helps Google understand which libraries and samples are helpful to developers, such as usage of this library.
66
+
// To opt out of sending the usage attribution ID, it is safe to set the const to false or replace the value with an empty string.
Copy file name to clipboardExpand all lines: examples/index.html
+10
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,16 @@
50
50
zoom: 4,
51
51
mapId: "DEMO_MAP_ID"
52
52
};
53
+
54
+
// Adds a usage attribution ID to the initializer, which helps Google understand which libraries and samples are helpful to developers, such as usage of this library.
55
+
// To opt out of sending the usage attribution ID, it is safe to set the const to false or replace the value with an empty string.
0 commit comments