@@ -2964,11 +2964,12 @@ google.maps.FeatureLayer.prototype.isAvailable;
2964
2964
* style is applied when style is set. If your style function updates, you must
2965
2965
* set the style property again. A <code>FeatureStyleFunction</code> must return
2966
2966
* 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.
2972
2973
* @type {?google.maps.FeatureStyleOptions|?google.maps.FeatureStyleFunction|undefined}
2973
2974
*/
2974
2975
google.maps.FeatureLayer.prototype.style;
@@ -3981,7 +3982,7 @@ google.maps.InfoWindowOptions = function() {};
3981
3982
3982
3983
/**
3983
3984
* AriaLabel to assign to the InfoWindow.
3984
- * @type {?string| undefined}
3985
+ * @type {undefined|null|string }
3985
3986
*/
3986
3987
google.maps.InfoWindowOptions.prototype.ariaLabel;
3987
3988
@@ -3990,14 +3991,14 @@ google.maps.InfoWindowOptions.prototype.ariaLabel;
3990
3991
* plain-text string, or a string containing HTML. The InfoWindow will be sized
3991
3992
* according to the content. To set an explicit size for the content, set
3992
3993
* content to be a HTML element with that size.
3993
- * @type {? string|? Element|? Text|undefined }
3994
+ * @type {undefined|null| string|! Element|! Text}
3994
3995
*/
3995
3996
google.maps.InfoWindowOptions.prototype.content;
3996
3997
3997
3998
/**
3998
3999
* Disable panning the map to make the InfoWindow fully visible when it opens.
3999
4000
* @default <code>false</code>
4000
- * @type {?boolean| undefined}
4001
+ * @type {undefined|null|boolean }
4001
4002
*/
4002
4003
google.maps.InfoWindowOptions.prototype.disableAutoPan;
4003
4004
@@ -4006,7 +4007,7 @@ google.maps.InfoWindowOptions.prototype.disableAutoPan;
4006
4007
* value is only considered if it is set before a call to <code>open()</code>.
4007
4008
* To change the maximum width when changing content, call <code>close()</code>,
4008
4009
* <code>setOptions()</code>, and then <code>open()</code>.
4009
- * @type {?number| undefined}
4010
+ * @type {undefined|null|number }
4010
4011
*/
4011
4012
google.maps.InfoWindowOptions.prototype.maxWidth;
4012
4013
@@ -4018,7 +4019,7 @@ google.maps.InfoWindowOptions.prototype.maxWidth;
4018
4019
* <code>open()</code>. To change the minimum width when changing content, call
4019
4020
* <code>close()</code>, <code>setOptions()</code>, and then
4020
4021
* <code>open()</code>.
4021
- * @type {?number| undefined}
4022
+ * @type {undefined|null|number }
4022
4023
*/
4023
4024
google.maps.InfoWindowOptions.prototype.minWidth;
4024
4025
@@ -4027,14 +4028,14 @@ google.maps.InfoWindowOptions.prototype.minWidth;
4027
4028
* map at whose geographical coordinates the info window is anchored. If an
4028
4029
* InfoWindow is opened with an anchor, the <code>pixelOffset</code> will be
4029
4030
* calculated from the anchor's <code>anchorPoint</code> property.
4030
- * @type {? google.maps.Size|undefined }
4031
+ * @type {undefined|null|! google.maps.Size}
4031
4032
*/
4032
4033
google.maps.InfoWindowOptions.prototype.pixelOffset;
4033
4034
4034
4035
/**
4035
4036
* The LatLng at which to display this InfoWindow. If the InfoWindow is opened
4036
4037
* with an anchor, the anchor'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}
4038
4039
*/
4039
4040
google.maps.InfoWindowOptions.prototype.position;
4040
4041
@@ -4044,7 +4045,7 @@ google.maps.InfoWindowOptions.prototype.position;
4044
4045
* default, InfoWindows are displayed according to their latitude, with
4045
4046
* InfoWindows of lower latitudes appearing in front of InfoWindows at higher
4046
4047
* latitudes. InfoWindows are always displayed in front of markers.
4047
- * @type {?number| undefined}
4048
+ * @type {undefined|null|number }
4048
4049
*/
4049
4050
google.maps.InfoWindowOptions.prototype.zIndex;
4050
4051
@@ -7109,17 +7110,33 @@ google.maps.Place.prototype.query;
7109
7110
*/
7110
7111
google.maps.PlaceFeature = function() {};
7111
7112
7113
+ /**
7114
+ * The {@link google.maps.places.PlaceResult.place_id}.
7115
+ * @type {string}
7116
+ */
7117
+ google.maps.PlaceFeature.prototype.placeId;
7118
+
7112
7119
/**
7113
7120
* The display name.
7114
7121
* @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.
7115
7125
*/
7116
7126
google.maps.PlaceFeature.prototype.displayName;
7117
7127
7118
7128
/**
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>}
7121
7138
*/
7122
- google.maps.PlaceFeature.prototype.placeId ;
7139
+ google.maps.PlaceFeature.prototype.fetchPlace = function() {} ;
7123
7140
7124
7141
/**
7125
7142
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
0 commit comments