Skip to content

Commit 2ab6df6

Browse files
Closure Teamcopybara-github
authored andcommitted
chore: sync changes for Maps JS API v3.51.7.
PiperOrigin-RevId: 504931002
1 parent 1874658 commit 2ab6df6

File tree

2 files changed

+66
-32
lines changed

2 files changed

+66
-32
lines changed

contrib/externs/maps/google_maps_api_v3_51.js

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2964,11 +2964,12 @@ google.maps.FeatureLayer.prototype.isAvailable;
29642964
* style is applied when style is set. If your style function updates, you must
29652965
* set the style property again. A <code>FeatureStyleFunction</code> must return
29662966
* consistent results when it is applied over the map tiles, and should be
2967-
* optimized for performance. If you use a <code>FeatureStyleOptions</code>, all
2968-
* features of that layer will be styled with the same
2969-
* <code>FeatureStyleOptions</code>. Set the style to <code>null</code> to
2970-
* remove the previously set style. If this <code>FeatureLayer</code> is not
2971-
* available, setting style does nothing and logs an error.
2967+
* optimized for performance. Asynchronous functions are not supported. If you
2968+
* use a <code>FeatureStyleOptions</code>, all features of that layer will be
2969+
* styled with the same <code>FeatureStyleOptions</code>. Set the style to
2970+
* <code>null</code> to remove the previously set style. If this
2971+
* <code>FeatureLayer</code> is not available, setting style does nothing and
2972+
* logs an error.
29722973
* @type {?google.maps.FeatureStyleOptions|?google.maps.FeatureStyleFunction|undefined}
29732974
*/
29742975
google.maps.FeatureLayer.prototype.style;
@@ -3981,7 +3982,7 @@ google.maps.InfoWindowOptions = function() {};
39813982

39823983
/**
39833984
* AriaLabel to assign to the InfoWindow.
3984-
* @type {?string|undefined}
3985+
* @type {undefined|null|string}
39853986
*/
39863987
google.maps.InfoWindowOptions.prototype.ariaLabel;
39873988

@@ -3990,14 +3991,14 @@ google.maps.InfoWindowOptions.prototype.ariaLabel;
39903991
* plain-text string, or a string containing HTML. The InfoWindow will be sized
39913992
* according to the content. To set an explicit size for the content, set
39923993
* content to be a HTML element with that size.
3993-
* @type {?string|?Element|?Text|undefined}
3994+
* @type {undefined|null|string|!Element|!Text}
39943995
*/
39953996
google.maps.InfoWindowOptions.prototype.content;
39963997

39973998
/**
39983999
* Disable panning the map to make the InfoWindow fully visible when it opens.
39994000
* @default <code>false</code>
4000-
* @type {?boolean|undefined}
4001+
* @type {undefined|null|boolean}
40014002
*/
40024003
google.maps.InfoWindowOptions.prototype.disableAutoPan;
40034004

@@ -4006,7 +4007,7 @@ google.maps.InfoWindowOptions.prototype.disableAutoPan;
40064007
* value is only considered if it is set before a call to <code>open()</code>.
40074008
* To change the maximum width when changing content, call <code>close()</code>,
40084009
* <code>setOptions()</code>, and then <code>open()</code>.
4009-
* @type {?number|undefined}
4010+
* @type {undefined|null|number}
40104011
*/
40114012
google.maps.InfoWindowOptions.prototype.maxWidth;
40124013

@@ -4018,7 +4019,7 @@ google.maps.InfoWindowOptions.prototype.maxWidth;
40184019
* <code>open()</code>. To change the minimum width when changing content, call
40194020
* <code>close()</code>, <code>setOptions()</code>, and then
40204021
* <code>open()</code>.
4021-
* @type {?number|undefined}
4022+
* @type {undefined|null|number}
40224023
*/
40234024
google.maps.InfoWindowOptions.prototype.minWidth;
40244025

@@ -4027,14 +4028,14 @@ google.maps.InfoWindowOptions.prototype.minWidth;
40274028
* map at whose geographical coordinates the info window is anchored. If an
40284029
* InfoWindow is opened with an anchor, the <code>pixelOffset</code> will be
40294030
* calculated from the anchor&#39;s <code>anchorPoint</code> property.
4030-
* @type {?google.maps.Size|undefined}
4031+
* @type {undefined|null|!google.maps.Size}
40314032
*/
40324033
google.maps.InfoWindowOptions.prototype.pixelOffset;
40334034

40344035
/**
40354036
* The LatLng at which to display this InfoWindow. If the InfoWindow is opened
40364037
* with an anchor, the anchor&#39;s position will be used instead.
4037-
* @type {?google.maps.LatLng|?google.maps.LatLngLiteral|undefined}
4038+
* @type {undefined|null|!google.maps.LatLng|!google.maps.LatLngLiteral}
40384039
*/
40394040
google.maps.InfoWindowOptions.prototype.position;
40404041

@@ -4044,7 +4045,7 @@ google.maps.InfoWindowOptions.prototype.position;
40444045
* default, InfoWindows are displayed according to their latitude, with
40454046
* InfoWindows of lower latitudes appearing in front of InfoWindows at higher
40464047
* latitudes. InfoWindows are always displayed in front of markers.
4047-
* @type {?number|undefined}
4048+
* @type {undefined|null|number}
40484049
*/
40494050
google.maps.InfoWindowOptions.prototype.zIndex;
40504051

@@ -7109,17 +7110,33 @@ google.maps.Place.prototype.query;
71097110
*/
71107111
google.maps.PlaceFeature = function() {};
71117112

7113+
/**
7114+
* The {@link google.maps.places.PlaceResult.place_id}.
7115+
* @type {string}
7116+
*/
7117+
google.maps.PlaceFeature.prototype.placeId;
7118+
71127119
/**
71137120
* The display name.
71147121
* @type {string}
7122+
* @deprecated <code>google.maps.PlaceFeature.displayName</code> is deprecated,
7123+
* and will be removed February 2023. Use
7124+
* <code>google.maps.PlaceFeature.fetchPlace()</code> instead.
71157125
*/
71167126
google.maps.PlaceFeature.prototype.displayName;
71177127

71187128
/**
7119-
* The {@link google.maps.places.PlaceResult.place_id}.
7120-
* @type {string}
7129+
* Fetches a <code>Place</code> for this <code>PlaceFeature</code>. In the
7130+
* resulting <code>Place</code> object, the <code>id</code> and the
7131+
* <code>displayName</code> properties will be populated. (Additional fields can
7132+
* be subsequently requested via <code>Place.fetchFields()</code> subject to
7133+
* normal Places API enablement and billing.) Do not call this from a
7134+
* <code>FeatureStyleFunction</code> since only synchronous
7135+
* FeatureStyleFunctions are supported. The promise is rejected if there was an
7136+
* error fetching the <code>Place</code>.
7137+
* @return {!Promise<!google.maps.places.Place>}
71217138
*/
7122-
google.maps.PlaceFeature.prototype.placeId;
7139+
google.maps.PlaceFeature.prototype.fetchPlace = function() {};
71237140

71247141
/**
71257142
* Available only in the v=beta channel: https://goo.gle/3oAthT3.

contrib/externs/maps/google_maps_api_v3_exp.js

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2964,11 +2964,12 @@ google.maps.FeatureLayer.prototype.isAvailable;
29642964
* style is applied when style is set. If your style function updates, you must
29652965
* set the style property again. A <code>FeatureStyleFunction</code> must return
29662966
* consistent results when it is applied over the map tiles, and should be
2967-
* optimized for performance. If you use a <code>FeatureStyleOptions</code>, all
2968-
* features of that layer will be styled with the same
2969-
* <code>FeatureStyleOptions</code>. Set the style to <code>null</code> to
2970-
* remove the previously set style. If this <code>FeatureLayer</code> is not
2971-
* available, setting style does nothing and logs an error.
2967+
* optimized for performance. Asynchronous functions are not supported. If you
2968+
* use a <code>FeatureStyleOptions</code>, all features of that layer will be
2969+
* styled with the same <code>FeatureStyleOptions</code>. Set the style to
2970+
* <code>null</code> to remove the previously set style. If this
2971+
* <code>FeatureLayer</code> is not available, setting style does nothing and
2972+
* logs an error.
29722973
* @type {?google.maps.FeatureStyleOptions|?google.maps.FeatureStyleFunction|undefined}
29732974
*/
29742975
google.maps.FeatureLayer.prototype.style;
@@ -3981,7 +3982,7 @@ google.maps.InfoWindowOptions = function() {};
39813982

39823983
/**
39833984
* AriaLabel to assign to the InfoWindow.
3984-
* @type {?string|undefined}
3985+
* @type {undefined|null|string}
39853986
*/
39863987
google.maps.InfoWindowOptions.prototype.ariaLabel;
39873988

@@ -3990,14 +3991,14 @@ google.maps.InfoWindowOptions.prototype.ariaLabel;
39903991
* plain-text string, or a string containing HTML. The InfoWindow will be sized
39913992
* according to the content. To set an explicit size for the content, set
39923993
* content to be a HTML element with that size.
3993-
* @type {?string|?Element|?Text|undefined}
3994+
* @type {undefined|null|string|!Element|!Text}
39943995
*/
39953996
google.maps.InfoWindowOptions.prototype.content;
39963997

39973998
/**
39983999
* Disable panning the map to make the InfoWindow fully visible when it opens.
39994000
* @default <code>false</code>
4000-
* @type {?boolean|undefined}
4001+
* @type {undefined|null|boolean}
40014002
*/
40024003
google.maps.InfoWindowOptions.prototype.disableAutoPan;
40034004

@@ -4006,7 +4007,7 @@ google.maps.InfoWindowOptions.prototype.disableAutoPan;
40064007
* value is only considered if it is set before a call to <code>open()</code>.
40074008
* To change the maximum width when changing content, call <code>close()</code>,
40084009
* <code>setOptions()</code>, and then <code>open()</code>.
4009-
* @type {?number|undefined}
4010+
* @type {undefined|null|number}
40104011
*/
40114012
google.maps.InfoWindowOptions.prototype.maxWidth;
40124013

@@ -4018,7 +4019,7 @@ google.maps.InfoWindowOptions.prototype.maxWidth;
40184019
* <code>open()</code>. To change the minimum width when changing content, call
40194020
* <code>close()</code>, <code>setOptions()</code>, and then
40204021
* <code>open()</code>.
4021-
* @type {?number|undefined}
4022+
* @type {undefined|null|number}
40224023
*/
40234024
google.maps.InfoWindowOptions.prototype.minWidth;
40244025

@@ -4027,14 +4028,14 @@ google.maps.InfoWindowOptions.prototype.minWidth;
40274028
* map at whose geographical coordinates the info window is anchored. If an
40284029
* InfoWindow is opened with an anchor, the <code>pixelOffset</code> will be
40294030
* calculated from the anchor&#39;s <code>anchorPoint</code> property.
4030-
* @type {?google.maps.Size|undefined}
4031+
* @type {undefined|null|!google.maps.Size}
40314032
*/
40324033
google.maps.InfoWindowOptions.prototype.pixelOffset;
40334034

40344035
/**
40354036
* The LatLng at which to display this InfoWindow. If the InfoWindow is opened
40364037
* with an anchor, the anchor&#39;s position will be used instead.
4037-
* @type {?google.maps.LatLng|?google.maps.LatLngLiteral|undefined}
4038+
* @type {undefined|null|!google.maps.LatLng|!google.maps.LatLngLiteral}
40384039
*/
40394040
google.maps.InfoWindowOptions.prototype.position;
40404041

@@ -4044,7 +4045,7 @@ google.maps.InfoWindowOptions.prototype.position;
40444045
* default, InfoWindows are displayed according to their latitude, with
40454046
* InfoWindows of lower latitudes appearing in front of InfoWindows at higher
40464047
* latitudes. InfoWindows are always displayed in front of markers.
4047-
* @type {?number|undefined}
4048+
* @type {undefined|null|number}
40484049
*/
40494050
google.maps.InfoWindowOptions.prototype.zIndex;
40504051

@@ -7109,17 +7110,33 @@ google.maps.Place.prototype.query;
71097110
*/
71107111
google.maps.PlaceFeature = function() {};
71117112

7113+
/**
7114+
* The {@link google.maps.places.PlaceResult.place_id}.
7115+
* @type {string}
7116+
*/
7117+
google.maps.PlaceFeature.prototype.placeId;
7118+
71127119
/**
71137120
* The display name.
71147121
* @type {string}
7122+
* @deprecated <code>google.maps.PlaceFeature.displayName</code> is deprecated,
7123+
* and will be removed February 2023. Use
7124+
* <code>google.maps.PlaceFeature.fetchPlace()</code> instead.
71157125
*/
71167126
google.maps.PlaceFeature.prototype.displayName;
71177127

71187128
/**
7119-
* The {@link google.maps.places.PlaceResult.place_id}.
7120-
* @type {string}
7129+
* Fetches a <code>Place</code> for this <code>PlaceFeature</code>. In the
7130+
* resulting <code>Place</code> object, the <code>id</code> and the
7131+
* <code>displayName</code> properties will be populated. (Additional fields can
7132+
* be subsequently requested via <code>Place.fetchFields()</code> subject to
7133+
* normal Places API enablement and billing.) Do not call this from a
7134+
* <code>FeatureStyleFunction</code> since only synchronous
7135+
* FeatureStyleFunctions are supported. The promise is rejected if there was an
7136+
* error fetching the <code>Place</code>.
7137+
* @return {!Promise<!google.maps.places.Place>}
71217138
*/
7122-
google.maps.PlaceFeature.prototype.placeId;
7139+
google.maps.PlaceFeature.prototype.fetchPlace = function() {};
71237140

71247141
/**
71257142
* Available only in the v=beta channel: https://goo.gle/3oAthT3.

0 commit comments

Comments
 (0)