Skip to content

Commit 79de6de

Browse files
Closure Teamcopybara-github
Closure Team
authored andcommitted
chore: sync changes for Maps JS API v3.59.2.
PiperOrigin-RevId: 703529708
1 parent 4e7532e commit 79de6de

File tree

2 files changed

+120
-28
lines changed

2 files changed

+120
-28
lines changed

contrib/externs/maps/google_maps_api_v3_59.js

+60-14
Original file line numberDiff line numberDiff line change
@@ -3342,7 +3342,7 @@ google.maps.FullscreenControlOptions = function() {};
33423342
/**
33433343
* Position id. Used to specify the position of the control on the map.
33443344
* @default {@link google.maps.ControlPosition.INLINE_END_BLOCK_START}
3345-
* @type {google.maps.ControlPosition|null|undefined}
3345+
* @type {!google.maps.ControlPosition|null|undefined}
33463346
*/
33473347
google.maps.FullscreenControlOptions.prototype.position;
33483348

@@ -5542,6 +5542,14 @@ google.maps.Map.prototype.getHeading = function() {};
55425542
*/
55435543
google.maps.Map.prototype.getHeadingInteractionEnabled = function() {};
55445544

5545+
/**
5546+
* Returns the list of usage attribution IDs, which help Google understand which
5547+
* libraries and samples are helpful to developers, such as usage of a marker
5548+
* clustering library.
5549+
* @return {!Iterable<string>|null}
5550+
*/
5551+
google.maps.Map.prototype.getInternalUsageAttributionIds = function() {};
5552+
55455553
/**
55465554
* Informs the caller of the current capabilities available to the map based on
55475555
* the Map ID that was provided.
@@ -5902,6 +5910,18 @@ google.maps.MapElement.prototype.headingInteractionDisabled;
59025910
*/
59035911
google.maps.MapElement.prototype.innerMap;
59045912

5913+
/**
5914+
* Adds a usage attribution ID to the initializer, which helps Google understand
5915+
* which libraries and samples are helpful to developers, such as usage of a
5916+
* marker clustering library. To opt out of sending the usage attribution ID, it
5917+
* is safe to delete this property or replace the value with an empty string.
5918+
* Only unique values will be sent. Changes to this value after instantiation
5919+
* may be ignored.
5920+
* @default <code>null</code>
5921+
* @type {!Iterable<string>|null}
5922+
*/
5923+
google.maps.MapElement.prototype.internalUsageAttributionIds;
5924+
59055925
/**
59065926
* The <a href="https://developers.google.com/maps/documentation/get-map-id">Map
59075927
* ID</a> of the map. This parameter cannot be set or changed after a map is
@@ -5963,6 +5983,12 @@ google.maps.MapElementOptions.prototype.center;
59635983
*/
59645984
google.maps.MapElementOptions.prototype.headingInteractionDisabled;
59655985

5986+
/**
5987+
* See {@link google.maps.MapElement.internalUsageAttributionIds}.
5988+
* @type {!Iterable<string>|null|undefined}
5989+
*/
5990+
google.maps.MapElementOptions.prototype.internalUsageAttributionIds;
5991+
59665992
/**
59675993
* See {@link google.maps.MapElement.mapId}.
59685994
* @type {string|null|undefined}
@@ -6163,6 +6189,18 @@ google.maps.MapOptions.prototype.heading;
61636189
*/
61646190
google.maps.MapOptions.prototype.headingInteractionEnabled;
61656191

6192+
/**
6193+
* Adds a usage attribution ID to the initializer, which helps Google understand
6194+
* which libraries and samples are helpful to developers, such as usage of a
6195+
* marker clustering library. To opt out of sending the usage attribution ID, it
6196+
* is safe to delete this property or replace the value with an empty string.
6197+
* Only unique values will be sent. Changes to this value after instantiation
6198+
* may be ignored.
6199+
* @default <code>null</code>
6200+
* @type {!Iterable<string>|null|undefined}
6201+
*/
6202+
google.maps.MapOptions.prototype.internalUsageAttributionIds;
6203+
61666204
/**
61676205
* Whether the map should allow fractional zoom levels. Listen to
61686206
* <code>isfractionalzoomenabled_changed</code> to know when the default has
@@ -9547,7 +9585,7 @@ google.maps.StreetViewPanoramaOptions.prototype.addressControl;
95479585

95489586
/**
95499587
* The display options for the address control.
9550-
* @type {google.maps.StreetViewAddressControlOptions|null|undefined}
9588+
* @type {!google.maps.StreetViewAddressControlOptions|null|undefined}
95519589
*/
95529590
google.maps.StreetViewPanoramaOptions.prototype.addressControlOptions;
95539591

@@ -9596,7 +9634,7 @@ google.maps.StreetViewPanoramaOptions.prototype.fullscreenControl;
95969634

95979635
/**
95989636
* The display options for the fullscreen control.
9599-
* @type {google.maps.FullscreenControlOptions|null|undefined}
9637+
* @type {!google.maps.FullscreenControlOptions|null|undefined}
96009638
*/
96019639
google.maps.StreetViewPanoramaOptions.prototype.fullscreenControlOptions;
96029640

@@ -9641,7 +9679,7 @@ google.maps.StreetViewPanoramaOptions.prototype.motionTrackingControl;
96419679

96429680
/**
96439681
* The display options for the motion tracking control.
9644-
* @type {google.maps.MotionTrackingControlOptions|null|undefined}
9682+
* @type {!google.maps.MotionTrackingControlOptions|null|undefined}
96459683
*/
96469684
google.maps.StreetViewPanoramaOptions.prototype.motionTrackingControlOptions;
96479685

@@ -9653,7 +9691,7 @@ google.maps.StreetViewPanoramaOptions.prototype.panControl;
96539691

96549692
/**
96559693
* The display options for the pan control.
9656-
* @type {google.maps.PanControlOptions|null|undefined}
9694+
* @type {!google.maps.PanControlOptions|null|undefined}
96579695
*/
96589696
google.maps.StreetViewPanoramaOptions.prototype.panControlOptions;
96599697

@@ -9665,13 +9703,13 @@ google.maps.StreetViewPanoramaOptions.prototype.pano;
96659703

96669704
/**
96679705
* The <code>LatLng</code> position of the Street View panorama.
9668-
* @type {google.maps.LatLng|google.maps.LatLngLiteral|null|undefined}
9706+
* @type {!google.maps.LatLng|!google.maps.LatLngLiteral|null|undefined}
96699707
*/
96709708
google.maps.StreetViewPanoramaOptions.prototype.position;
96719709

96729710
/**
96739711
* The camera orientation, specified as heading and pitch, for the panorama.
9674-
* @type {google.maps.StreetViewPov|null|undefined}
9712+
* @type {!google.maps.StreetViewPov|null|undefined}
96759713
*/
96769714
google.maps.StreetViewPanoramaOptions.prototype.pov;
96779715

@@ -9712,7 +9750,7 @@ google.maps.StreetViewPanoramaOptions.prototype.zoomControl;
97129750

97139751
/**
97149752
* The display options for the zoom control.
9715-
* @type {google.maps.ZoomControlOptions|null|undefined}
9753+
* @type {!google.maps.ZoomControlOptions|null|undefined}
97169754
*/
97179755
google.maps.StreetViewPanoramaOptions.prototype.zoomControlOptions;
97189756

@@ -10378,15 +10416,15 @@ google.maps.TransitLayer = function() {};
1037810416

1037910417
/**
1038010418
* Returns the map on which this layer is displayed.
10381-
* @return {google.maps.Map}
10419+
* @return {!google.maps.Map|null}
1038210420
*/
1038310421
google.maps.TransitLayer.prototype.getMap = function() {};
1038410422

1038510423
/**
1038610424
* Renders the layer on the specified map. If map is set to <code>null</code>,
1038710425
* the layer will be removed.
10388-
* @param {google.maps.Map} map
10389-
* @return {undefined}
10426+
* @param {!google.maps.Map|null} map
10427+
* @return {void}
1039010428
*/
1039110429
google.maps.TransitLayer.prototype.setMap = function(map) {};
1039210430

@@ -11363,7 +11401,10 @@ google.maps.elevation = {};
1136311401
* Available only in the v=alpha channel: https://goo.gle/js-alpha-channel.
1136411402
*
1136511403
* An HTML element that visually displays elevation data. Set the element&#39;s
11366-
* <code>path</code> property to show a graph of elevation along the path.
11404+
* <code>path</code> property to show a graph of elevation along the path. To
11405+
* use the Elevation Element, enable the <a
11406+
* href="https://console.cloud.google.com/marketplace/product/google/placewidgets.googleapis.com"
11407+
* >Places UI Kit API</a> for your project in the Google Cloud console.
1136711408
*
1136811409
* Access by calling `const {ElevationElement} = await
1136911410
* google.maps.importLibrary("elevation")`. See
@@ -18924,7 +18965,10 @@ google.maps.places.PlaceAutocompleteRequestErrorEvent = function() {};
1892418965
*
1892518966
* An HTML element that displays details for a place. Use the
1892618967
* <code>configureFromPlace()</code> or <code>configureFromLocation()</code>
18927-
* methods to specify the content to be rendered.
18968+
* methods to specify the content to be rendered. To use the Place Details
18969+
* Element, enable the <a
18970+
* href="https://console.cloud.google.com/marketplace/product/google/placewidgets.googleapis.com"
18971+
* >Places UI Kit API</a> for your project in the Google Cloud console.
1892818972
*
1892918973
* Access by calling `const {PlaceDetailsElement} = await
1893018974
* google.maps.importLibrary("places")`. See
@@ -19099,7 +19143,9 @@ google.maps.places.PlaceGeometry.prototype.viewport;
1909919143
* An HTML element that displays the results of a place search in a list. Use
1910019144
* the <code>configureFromSearchByTextRequest()</code> or
1910119145
* <code>configureFromSearchNearbyRequest()</code> methods to specify the
19102-
* request to render results for.
19146+
* request to render results for. To use the Place List Element, enable the <a
19147+
* href="https://console.cloud.google.com/marketplace/product/google/placewidgets.googleapis.com"
19148+
* >Places UI Kit API</a> for your project in the Google Cloud console.
1910319149
*
1910419150
* Access by calling `const {PlaceListElement} = await
1910519151
* google.maps.importLibrary("places")`. See

contrib/externs/maps/google_maps_api_v3_exp.js

+60-14
Original file line numberDiff line numberDiff line change
@@ -3342,7 +3342,7 @@ google.maps.FullscreenControlOptions = function() {};
33423342
/**
33433343
* Position id. Used to specify the position of the control on the map.
33443344
* @default {@link google.maps.ControlPosition.INLINE_END_BLOCK_START}
3345-
* @type {google.maps.ControlPosition|null|undefined}
3345+
* @type {!google.maps.ControlPosition|null|undefined}
33463346
*/
33473347
google.maps.FullscreenControlOptions.prototype.position;
33483348

@@ -5542,6 +5542,14 @@ google.maps.Map.prototype.getHeading = function() {};
55425542
*/
55435543
google.maps.Map.prototype.getHeadingInteractionEnabled = function() {};
55445544

5545+
/**
5546+
* Returns the list of usage attribution IDs, which help Google understand which
5547+
* libraries and samples are helpful to developers, such as usage of a marker
5548+
* clustering library.
5549+
* @return {!Iterable<string>|null}
5550+
*/
5551+
google.maps.Map.prototype.getInternalUsageAttributionIds = function() {};
5552+
55455553
/**
55465554
* Informs the caller of the current capabilities available to the map based on
55475555
* the Map ID that was provided.
@@ -5902,6 +5910,18 @@ google.maps.MapElement.prototype.headingInteractionDisabled;
59025910
*/
59035911
google.maps.MapElement.prototype.innerMap;
59045912

5913+
/**
5914+
* Adds a usage attribution ID to the initializer, which helps Google understand
5915+
* which libraries and samples are helpful to developers, such as usage of a
5916+
* marker clustering library. To opt out of sending the usage attribution ID, it
5917+
* is safe to delete this property or replace the value with an empty string.
5918+
* Only unique values will be sent. Changes to this value after instantiation
5919+
* may be ignored.
5920+
* @default <code>null</code>
5921+
* @type {!Iterable<string>|null}
5922+
*/
5923+
google.maps.MapElement.prototype.internalUsageAttributionIds;
5924+
59055925
/**
59065926
* The <a href="https://developers.google.com/maps/documentation/get-map-id">Map
59075927
* ID</a> of the map. This parameter cannot be set or changed after a map is
@@ -5963,6 +5983,12 @@ google.maps.MapElementOptions.prototype.center;
59635983
*/
59645984
google.maps.MapElementOptions.prototype.headingInteractionDisabled;
59655985

5986+
/**
5987+
* See {@link google.maps.MapElement.internalUsageAttributionIds}.
5988+
* @type {!Iterable<string>|null|undefined}
5989+
*/
5990+
google.maps.MapElementOptions.prototype.internalUsageAttributionIds;
5991+
59665992
/**
59675993
* See {@link google.maps.MapElement.mapId}.
59685994
* @type {string|null|undefined}
@@ -6163,6 +6189,18 @@ google.maps.MapOptions.prototype.heading;
61636189
*/
61646190
google.maps.MapOptions.prototype.headingInteractionEnabled;
61656191

6192+
/**
6193+
* Adds a usage attribution ID to the initializer, which helps Google understand
6194+
* which libraries and samples are helpful to developers, such as usage of a
6195+
* marker clustering library. To opt out of sending the usage attribution ID, it
6196+
* is safe to delete this property or replace the value with an empty string.
6197+
* Only unique values will be sent. Changes to this value after instantiation
6198+
* may be ignored.
6199+
* @default <code>null</code>
6200+
* @type {!Iterable<string>|null|undefined}
6201+
*/
6202+
google.maps.MapOptions.prototype.internalUsageAttributionIds;
6203+
61666204
/**
61676205
* Whether the map should allow fractional zoom levels. Listen to
61686206
* <code>isfractionalzoomenabled_changed</code> to know when the default has
@@ -9547,7 +9585,7 @@ google.maps.StreetViewPanoramaOptions.prototype.addressControl;
95479585

95489586
/**
95499587
* The display options for the address control.
9550-
* @type {google.maps.StreetViewAddressControlOptions|null|undefined}
9588+
* @type {!google.maps.StreetViewAddressControlOptions|null|undefined}
95519589
*/
95529590
google.maps.StreetViewPanoramaOptions.prototype.addressControlOptions;
95539591

@@ -9596,7 +9634,7 @@ google.maps.StreetViewPanoramaOptions.prototype.fullscreenControl;
95969634

95979635
/**
95989636
* The display options for the fullscreen control.
9599-
* @type {google.maps.FullscreenControlOptions|null|undefined}
9637+
* @type {!google.maps.FullscreenControlOptions|null|undefined}
96009638
*/
96019639
google.maps.StreetViewPanoramaOptions.prototype.fullscreenControlOptions;
96029640

@@ -9641,7 +9679,7 @@ google.maps.StreetViewPanoramaOptions.prototype.motionTrackingControl;
96419679

96429680
/**
96439681
* The display options for the motion tracking control.
9644-
* @type {google.maps.MotionTrackingControlOptions|null|undefined}
9682+
* @type {!google.maps.MotionTrackingControlOptions|null|undefined}
96459683
*/
96469684
google.maps.StreetViewPanoramaOptions.prototype.motionTrackingControlOptions;
96479685

@@ -9653,7 +9691,7 @@ google.maps.StreetViewPanoramaOptions.prototype.panControl;
96539691

96549692
/**
96559693
* The display options for the pan control.
9656-
* @type {google.maps.PanControlOptions|null|undefined}
9694+
* @type {!google.maps.PanControlOptions|null|undefined}
96579695
*/
96589696
google.maps.StreetViewPanoramaOptions.prototype.panControlOptions;
96599697

@@ -9665,13 +9703,13 @@ google.maps.StreetViewPanoramaOptions.prototype.pano;
96659703

96669704
/**
96679705
* The <code>LatLng</code> position of the Street View panorama.
9668-
* @type {google.maps.LatLng|google.maps.LatLngLiteral|null|undefined}
9706+
* @type {!google.maps.LatLng|!google.maps.LatLngLiteral|null|undefined}
96699707
*/
96709708
google.maps.StreetViewPanoramaOptions.prototype.position;
96719709

96729710
/**
96739711
* The camera orientation, specified as heading and pitch, for the panorama.
9674-
* @type {google.maps.StreetViewPov|null|undefined}
9712+
* @type {!google.maps.StreetViewPov|null|undefined}
96759713
*/
96769714
google.maps.StreetViewPanoramaOptions.prototype.pov;
96779715

@@ -9712,7 +9750,7 @@ google.maps.StreetViewPanoramaOptions.prototype.zoomControl;
97129750

97139751
/**
97149752
* The display options for the zoom control.
9715-
* @type {google.maps.ZoomControlOptions|null|undefined}
9753+
* @type {!google.maps.ZoomControlOptions|null|undefined}
97169754
*/
97179755
google.maps.StreetViewPanoramaOptions.prototype.zoomControlOptions;
97189756

@@ -10378,15 +10416,15 @@ google.maps.TransitLayer = function() {};
1037810416

1037910417
/**
1038010418
* Returns the map on which this layer is displayed.
10381-
* @return {google.maps.Map}
10419+
* @return {!google.maps.Map|null}
1038210420
*/
1038310421
google.maps.TransitLayer.prototype.getMap = function() {};
1038410422

1038510423
/**
1038610424
* Renders the layer on the specified map. If map is set to <code>null</code>,
1038710425
* the layer will be removed.
10388-
* @param {google.maps.Map} map
10389-
* @return {undefined}
10426+
* @param {!google.maps.Map|null} map
10427+
* @return {void}
1039010428
*/
1039110429
google.maps.TransitLayer.prototype.setMap = function(map) {};
1039210430

@@ -11363,7 +11401,10 @@ google.maps.elevation = {};
1136311401
* Available only in the v=alpha channel: https://goo.gle/js-alpha-channel.
1136411402
*
1136511403
* An HTML element that visually displays elevation data. Set the element&#39;s
11366-
* <code>path</code> property to show a graph of elevation along the path.
11404+
* <code>path</code> property to show a graph of elevation along the path. To
11405+
* use the Elevation Element, enable the <a
11406+
* href="https://console.cloud.google.com/marketplace/product/google/placewidgets.googleapis.com"
11407+
* >Places UI Kit API</a> for your project in the Google Cloud console.
1136711408
*
1136811409
* Access by calling `const {ElevationElement} = await
1136911410
* google.maps.importLibrary("elevation")`. See
@@ -18924,7 +18965,10 @@ google.maps.places.PlaceAutocompleteRequestErrorEvent = function() {};
1892418965
*
1892518966
* An HTML element that displays details for a place. Use the
1892618967
* <code>configureFromPlace()</code> or <code>configureFromLocation()</code>
18927-
* methods to specify the content to be rendered.
18968+
* methods to specify the content to be rendered. To use the Place Details
18969+
* Element, enable the <a
18970+
* href="https://console.cloud.google.com/marketplace/product/google/placewidgets.googleapis.com"
18971+
* >Places UI Kit API</a> for your project in the Google Cloud console.
1892818972
*
1892918973
* Access by calling `const {PlaceDetailsElement} = await
1893018974
* google.maps.importLibrary("places")`. See
@@ -19099,7 +19143,9 @@ google.maps.places.PlaceGeometry.prototype.viewport;
1909919143
* An HTML element that displays the results of a place search in a list. Use
1910019144
* the <code>configureFromSearchByTextRequest()</code> or
1910119145
* <code>configureFromSearchNearbyRequest()</code> methods to specify the
19102-
* request to render results for.
19146+
* request to render results for. To use the Place List Element, enable the <a
19147+
* href="https://console.cloud.google.com/marketplace/product/google/placewidgets.googleapis.com"
19148+
* >Places UI Kit API</a> for your project in the Google Cloud console.
1910319149
*
1910419150
* Access by calling `const {PlaceListElement} = await
1910519151
* google.maps.importLibrary("places")`. See

0 commit comments

Comments
 (0)