Skip to content

Commit a126977

Browse files
Closure Teamcopybara-github
Closure Team
authored andcommitted
chore: sync changes for Maps JS API v3.59.4a.
PiperOrigin-RevId: 713729186
1 parent 326dcb3 commit a126977

File tree

2 files changed

+82
-80
lines changed

2 files changed

+82
-80
lines changed

contrib/externs/maps/google_maps_api_v3_59.js

+41-40
Original file line numberDiff line numberDiff line change
@@ -2089,7 +2089,7 @@ google.maps.DirectionsRendererOptions = function() {};
20892089
* The directions to display on the map and/or in a <code>&lt;div&gt;</code>
20902090
* panel, retrieved as a <code>DirectionsResult</code> object from
20912091
* <code>DirectionsService</code>.
2092-
* @type {google.maps.DirectionsResult|null|undefined}
2092+
* @type {!google.maps.DirectionsResult|null|undefined}
20932093
*/
20942094
google.maps.DirectionsRendererOptions.prototype.directions;
20952095

@@ -2114,33 +2114,33 @@ google.maps.DirectionsRendererOptions.prototype.hideRouteList;
21142114
* moved. If no info window is specified, the <code>DirectionsRenderer</code>
21152115
* will create and use its own info window. This property will be ignored if
21162116
* <code>suppressInfoWindows</code> is set to <code>true</code>.
2117-
* @type {google.maps.InfoWindow|null|undefined}
2117+
* @type {!google.maps.InfoWindow|null|undefined}
21182118
*/
21192119
google.maps.DirectionsRendererOptions.prototype.infoWindow;
21202120

21212121
/**
21222122
* Map on which to display the directions.
2123-
* @type {google.maps.Map|null|undefined}
2123+
* @type {!google.maps.Map|null|undefined}
21242124
*/
21252125
google.maps.DirectionsRendererOptions.prototype.map;
21262126

21272127
/**
21282128
* Options for the markers. All markers rendered by the
21292129
* <code>DirectionsRenderer</code> will use these options.
2130-
* @type {google.maps.MarkerOptions|null|undefined}
2130+
* @type {!google.maps.MarkerOptions|null|undefined}
21312131
*/
21322132
google.maps.DirectionsRendererOptions.prototype.markerOptions;
21332133

21342134
/**
21352135
* The <code>&lt;div&gt;</code> in which to display the directions steps.
2136-
* @type {HTMLElement|null|undefined}
2136+
* @type {!HTMLElement|null|undefined}
21372137
*/
21382138
google.maps.DirectionsRendererOptions.prototype.panel;
21392139

21402140
/**
21412141
* Options for the polylines. All polylines rendered by the
21422142
* <code>DirectionsRenderer</code> will use these options.
2143-
* @type {google.maps.PolylineOptions|null|undefined}
2143+
* @type {!google.maps.PolylineOptions|null|undefined}
21442144
*/
21452145
google.maps.DirectionsRendererOptions.prototype.polylineOptions;
21462146

@@ -5552,7 +5552,7 @@ google.maps.Map.prototype.getInternalUsageAttributionIds = function() {};
55525552

55535553
/**
55545554
* Informs the caller of the current capabilities available to the map based on
5555-
* the Map ID that was provided.
5555+
* the map ID that was provided.
55565556
* @return {!google.maps.MapCapabilities}
55575557
*/
55585558
google.maps.Map.prototype.getMapCapabilities = function() {};
@@ -5758,7 +5758,7 @@ google.maps.Map.prototype.setTiltInteractionEnabled = function(
57585758
google.maps.Map.prototype.setZoom = function(zoom) {};
57595759

57605760
/**
5761-
* Map ID which can be used for code samples which require a Map ID. This Map ID
5761+
* Map ID which can be used for code samples which require a map ID. This map ID
57625762
* is not intended for use in production applications and cannot be used for
57635763
* features which require cloud configuration (such as Cloud Styling).
57645764
* @const
@@ -5923,7 +5923,7 @@ google.maps.MapElement.prototype.innerMap;
59235923
google.maps.MapElement.prototype.internalUsageAttributionIds;
59245924

59255925
/**
5926-
* The <a href="https://developers.google.com/maps/documentation/get-map-id">Map
5926+
* The <a href="https://developers.google.com/maps/documentation/get-map-id">map
59275927
* ID</a> of the map. This parameter cannot be set or changed after a map is
59285928
* instantiated. {@link google.maps.Map.DEMO_MAP_ID} can be used to try out
59295929
* features that require a map ID but which do not require cloud enablement.
@@ -6219,7 +6219,7 @@ google.maps.MapOptions.prototype.isFractionalZoomEnabled;
62196219
google.maps.MapOptions.prototype.keyboardShortcuts;
62206220

62216221
/**
6222-
* The <a href="https://developers.google.com/maps/documentation/get-map-id">Map
6222+
* The <a href="https://developers.google.com/maps/documentation/get-map-id">map
62236223
* ID</a> of the map. This parameter cannot be set or changed after a map is
62246224
* instantiated. {@link google.maps.Map.DEMO_MAP_ID} can be used to try out
62256225
* features that require a map ID but which do not require cloud enablement.
@@ -6578,20 +6578,20 @@ google.maps.MapTypeControlOptions = function() {};
65786578

65796579
/**
65806580
* IDs of map types to show in the control.
6581-
* @type {Array<!google.maps.MapTypeId|string>|null|undefined}
6581+
* @type {!Array<!google.maps.MapTypeId|string>|null|undefined}
65826582
*/
65836583
google.maps.MapTypeControlOptions.prototype.mapTypeIds;
65846584

65856585
/**
65866586
* Position id. Used to specify the position of the control on the map.
65876587
* @default {@link google.maps.ControlPosition.BLOCK_START_INLINE_START}
6588-
* @type {google.maps.ControlPosition|null|undefined}
6588+
* @type {!google.maps.ControlPosition|null|undefined}
65896589
*/
65906590
google.maps.MapTypeControlOptions.prototype.position;
65916591

65926592
/**
65936593
* Style id. Used to select what style of map type control to display.
6594-
* @type {google.maps.MapTypeControlStyle|null|undefined}
6594+
* @type {!google.maps.MapTypeControlStyle|null|undefined}
65956595
*/
65966596
google.maps.MapTypeControlOptions.prototype.style;
65976597

@@ -11471,6 +11471,31 @@ google.maps.elevation.ElevationElementOptions.prototype.unitSystem;
1147111471
*/
1147211472
google.maps.geometry = {};
1147311473

11474+
/**
11475+
* Utilities for polyline encoding and decoding.
11476+
*
11477+
* Access by calling `const {encoding} = await
11478+
* google.maps.importLibrary("geometry")`. See
11479+
* https://developers.google.com/maps/documentation/javascript/libraries.
11480+
* @constructor
11481+
*/
11482+
google.maps.geometry.encoding = function() {};
11483+
11484+
/**
11485+
* Decodes an encoded path string into a sequence of LatLngs.
11486+
* @param {string} encodedPath
11487+
* @return {!Array<!google.maps.LatLng>}
11488+
*/
11489+
google.maps.geometry.encoding.decodePath = function(encodedPath) {};
11490+
11491+
/**
11492+
* Encodes a sequence of LatLngs into an encoded path string.
11493+
* @param {!Array<!google.maps.LatLng|!google.maps.LatLngLiteral>|!google.maps.MVCArray<!google.maps.LatLng|!google.maps.LatLngLiteral>}
11494+
* path
11495+
* @return {string}
11496+
*/
11497+
google.maps.geometry.encoding.encodePath = function(path) {};
11498+
1147411499
/**
1147511500
* Utility functions for computations involving polygons and polylines.
1147611501
*
@@ -11614,31 +11639,6 @@ google.maps.geometry.spherical.computeSignedArea = function(loop, radius) {};
1161411639
*/
1161511640
google.maps.geometry.spherical.interpolate = function(from, to, fraction) {};
1161611641

11617-
/**
11618-
* Utilities for polyline encoding and decoding.
11619-
*
11620-
* Access by calling `const {encoding} = await
11621-
* google.maps.importLibrary("geometry")`. See
11622-
* https://developers.google.com/maps/documentation/javascript/libraries.
11623-
* @const
11624-
*/
11625-
google.maps.geometry.encoding = {};
11626-
11627-
/**
11628-
* Decodes an encoded path string into a sequence of LatLngs.
11629-
* @param {string} encodedPath
11630-
* @return {!Array<!google.maps.LatLng>}
11631-
*/
11632-
google.maps.geometry.encoding.decodePath = function(encodedPath) {};
11633-
11634-
/**
11635-
* Encodes a sequence of LatLngs into an encoded path string.
11636-
* @param {!Array<!google.maps.LatLng|!google.maps.LatLngLiteral>|!google.maps.MVCArray<!google.maps.LatLng|!google.maps.LatLngLiteral>}
11637-
* path
11638-
* @return {string}
11639-
*/
11640-
google.maps.geometry.encoding.encodePath = function(path) {};
11641-
1164211642
/**
1164311643
* @const
1164411644
*/
@@ -20334,7 +20334,7 @@ google.maps.places.Review.prototype.textLanguageCode;
2033420334
* google.maps.importLibrary("places")`. See
2033520335
* https://developers.google.com/maps/documentation/javascript/libraries.
2033620336
* @param {!HTMLInputElement} inputField
20337-
* @param {?google.maps.places.SearchBoxOptions=} opts
20337+
* @param {(!google.maps.places.SearchBoxOptions|null)=} opts
2033820338
* @extends {google.maps.MVCObject}
2033920339
* @constructor
2034020340
*/
@@ -20356,7 +20356,8 @@ google.maps.places.SearchBox.prototype.getPlaces = function() {};
2035620356
/**
2035720357
* Sets the region to use for biasing query predictions. Results will only be
2035820358
* biased towards this area and not be completely restricted to it.
20359-
* @param {google.maps.LatLngBounds|google.maps.LatLngBoundsLiteral|null} bounds
20359+
* @param {!google.maps.LatLngBounds|!google.maps.LatLngBoundsLiteral|null}
20360+
* bounds
2036020361
* @return {undefined}
2036120362
*/
2036220363
google.maps.places.SearchBox.prototype.setBounds = function(bounds) {};

contrib/externs/maps/google_maps_api_v3_exp.js

+41-40
Original file line numberDiff line numberDiff line change
@@ -2089,7 +2089,7 @@ google.maps.DirectionsRendererOptions = function() {};
20892089
* The directions to display on the map and/or in a <code>&lt;div&gt;</code>
20902090
* panel, retrieved as a <code>DirectionsResult</code> object from
20912091
* <code>DirectionsService</code>.
2092-
* @type {google.maps.DirectionsResult|null|undefined}
2092+
* @type {!google.maps.DirectionsResult|null|undefined}
20932093
*/
20942094
google.maps.DirectionsRendererOptions.prototype.directions;
20952095

@@ -2114,33 +2114,33 @@ google.maps.DirectionsRendererOptions.prototype.hideRouteList;
21142114
* moved. If no info window is specified, the <code>DirectionsRenderer</code>
21152115
* will create and use its own info window. This property will be ignored if
21162116
* <code>suppressInfoWindows</code> is set to <code>true</code>.
2117-
* @type {google.maps.InfoWindow|null|undefined}
2117+
* @type {!google.maps.InfoWindow|null|undefined}
21182118
*/
21192119
google.maps.DirectionsRendererOptions.prototype.infoWindow;
21202120

21212121
/**
21222122
* Map on which to display the directions.
2123-
* @type {google.maps.Map|null|undefined}
2123+
* @type {!google.maps.Map|null|undefined}
21242124
*/
21252125
google.maps.DirectionsRendererOptions.prototype.map;
21262126

21272127
/**
21282128
* Options for the markers. All markers rendered by the
21292129
* <code>DirectionsRenderer</code> will use these options.
2130-
* @type {google.maps.MarkerOptions|null|undefined}
2130+
* @type {!google.maps.MarkerOptions|null|undefined}
21312131
*/
21322132
google.maps.DirectionsRendererOptions.prototype.markerOptions;
21332133

21342134
/**
21352135
* The <code>&lt;div&gt;</code> in which to display the directions steps.
2136-
* @type {HTMLElement|null|undefined}
2136+
* @type {!HTMLElement|null|undefined}
21372137
*/
21382138
google.maps.DirectionsRendererOptions.prototype.panel;
21392139

21402140
/**
21412141
* Options for the polylines. All polylines rendered by the
21422142
* <code>DirectionsRenderer</code> will use these options.
2143-
* @type {google.maps.PolylineOptions|null|undefined}
2143+
* @type {!google.maps.PolylineOptions|null|undefined}
21442144
*/
21452145
google.maps.DirectionsRendererOptions.prototype.polylineOptions;
21462146

@@ -5552,7 +5552,7 @@ google.maps.Map.prototype.getInternalUsageAttributionIds = function() {};
55525552

55535553
/**
55545554
* Informs the caller of the current capabilities available to the map based on
5555-
* the Map ID that was provided.
5555+
* the map ID that was provided.
55565556
* @return {!google.maps.MapCapabilities}
55575557
*/
55585558
google.maps.Map.prototype.getMapCapabilities = function() {};
@@ -5758,7 +5758,7 @@ google.maps.Map.prototype.setTiltInteractionEnabled = function(
57585758
google.maps.Map.prototype.setZoom = function(zoom) {};
57595759

57605760
/**
5761-
* Map ID which can be used for code samples which require a Map ID. This Map ID
5761+
* Map ID which can be used for code samples which require a map ID. This map ID
57625762
* is not intended for use in production applications and cannot be used for
57635763
* features which require cloud configuration (such as Cloud Styling).
57645764
* @const
@@ -5923,7 +5923,7 @@ google.maps.MapElement.prototype.innerMap;
59235923
google.maps.MapElement.prototype.internalUsageAttributionIds;
59245924

59255925
/**
5926-
* The <a href="https://developers.google.com/maps/documentation/get-map-id">Map
5926+
* The <a href="https://developers.google.com/maps/documentation/get-map-id">map
59275927
* ID</a> of the map. This parameter cannot be set or changed after a map is
59285928
* instantiated. {@link google.maps.Map.DEMO_MAP_ID} can be used to try out
59295929
* features that require a map ID but which do not require cloud enablement.
@@ -6219,7 +6219,7 @@ google.maps.MapOptions.prototype.isFractionalZoomEnabled;
62196219
google.maps.MapOptions.prototype.keyboardShortcuts;
62206220

62216221
/**
6222-
* The <a href="https://developers.google.com/maps/documentation/get-map-id">Map
6222+
* The <a href="https://developers.google.com/maps/documentation/get-map-id">map
62236223
* ID</a> of the map. This parameter cannot be set or changed after a map is
62246224
* instantiated. {@link google.maps.Map.DEMO_MAP_ID} can be used to try out
62256225
* features that require a map ID but which do not require cloud enablement.
@@ -6578,20 +6578,20 @@ google.maps.MapTypeControlOptions = function() {};
65786578

65796579
/**
65806580
* IDs of map types to show in the control.
6581-
* @type {Array<!google.maps.MapTypeId|string>|null|undefined}
6581+
* @type {!Array<!google.maps.MapTypeId|string>|null|undefined}
65826582
*/
65836583
google.maps.MapTypeControlOptions.prototype.mapTypeIds;
65846584

65856585
/**
65866586
* Position id. Used to specify the position of the control on the map.
65876587
* @default {@link google.maps.ControlPosition.BLOCK_START_INLINE_START}
6588-
* @type {google.maps.ControlPosition|null|undefined}
6588+
* @type {!google.maps.ControlPosition|null|undefined}
65896589
*/
65906590
google.maps.MapTypeControlOptions.prototype.position;
65916591

65926592
/**
65936593
* Style id. Used to select what style of map type control to display.
6594-
* @type {google.maps.MapTypeControlStyle|null|undefined}
6594+
* @type {!google.maps.MapTypeControlStyle|null|undefined}
65956595
*/
65966596
google.maps.MapTypeControlOptions.prototype.style;
65976597

@@ -11471,6 +11471,31 @@ google.maps.elevation.ElevationElementOptions.prototype.unitSystem;
1147111471
*/
1147211472
google.maps.geometry = {};
1147311473

11474+
/**
11475+
* Utilities for polyline encoding and decoding.
11476+
*
11477+
* Access by calling `const {encoding} = await
11478+
* google.maps.importLibrary("geometry")`. See
11479+
* https://developers.google.com/maps/documentation/javascript/libraries.
11480+
* @constructor
11481+
*/
11482+
google.maps.geometry.encoding = function() {};
11483+
11484+
/**
11485+
* Decodes an encoded path string into a sequence of LatLngs.
11486+
* @param {string} encodedPath
11487+
* @return {!Array<!google.maps.LatLng>}
11488+
*/
11489+
google.maps.geometry.encoding.decodePath = function(encodedPath) {};
11490+
11491+
/**
11492+
* Encodes a sequence of LatLngs into an encoded path string.
11493+
* @param {!Array<!google.maps.LatLng|!google.maps.LatLngLiteral>|!google.maps.MVCArray<!google.maps.LatLng|!google.maps.LatLngLiteral>}
11494+
* path
11495+
* @return {string}
11496+
*/
11497+
google.maps.geometry.encoding.encodePath = function(path) {};
11498+
1147411499
/**
1147511500
* Utility functions for computations involving polygons and polylines.
1147611501
*
@@ -11614,31 +11639,6 @@ google.maps.geometry.spherical.computeSignedArea = function(loop, radius) {};
1161411639
*/
1161511640
google.maps.geometry.spherical.interpolate = function(from, to, fraction) {};
1161611641

11617-
/**
11618-
* Utilities for polyline encoding and decoding.
11619-
*
11620-
* Access by calling `const {encoding} = await
11621-
* google.maps.importLibrary("geometry")`. See
11622-
* https://developers.google.com/maps/documentation/javascript/libraries.
11623-
* @const
11624-
*/
11625-
google.maps.geometry.encoding = {};
11626-
11627-
/**
11628-
* Decodes an encoded path string into a sequence of LatLngs.
11629-
* @param {string} encodedPath
11630-
* @return {!Array<!google.maps.LatLng>}
11631-
*/
11632-
google.maps.geometry.encoding.decodePath = function(encodedPath) {};
11633-
11634-
/**
11635-
* Encodes a sequence of LatLngs into an encoded path string.
11636-
* @param {!Array<!google.maps.LatLng|!google.maps.LatLngLiteral>|!google.maps.MVCArray<!google.maps.LatLng|!google.maps.LatLngLiteral>}
11637-
* path
11638-
* @return {string}
11639-
*/
11640-
google.maps.geometry.encoding.encodePath = function(path) {};
11641-
1164211642
/**
1164311643
* @const
1164411644
*/
@@ -20334,7 +20334,7 @@ google.maps.places.Review.prototype.textLanguageCode;
2033420334
* google.maps.importLibrary("places")`. See
2033520335
* https://developers.google.com/maps/documentation/javascript/libraries.
2033620336
* @param {!HTMLInputElement} inputField
20337-
* @param {?google.maps.places.SearchBoxOptions=} opts
20337+
* @param {(!google.maps.places.SearchBoxOptions|null)=} opts
2033820338
* @extends {google.maps.MVCObject}
2033920339
* @constructor
2034020340
*/
@@ -20356,7 +20356,8 @@ google.maps.places.SearchBox.prototype.getPlaces = function() {};
2035620356
/**
2035720357
* Sets the region to use for biasing query predictions. Results will only be
2035820358
* biased towards this area and not be completely restricted to it.
20359-
* @param {google.maps.LatLngBounds|google.maps.LatLngBoundsLiteral|null} bounds
20359+
* @param {!google.maps.LatLngBounds|!google.maps.LatLngBoundsLiteral|null}
20360+
* bounds
2036020361
* @return {undefined}
2036120362
*/
2036220363
google.maps.places.SearchBox.prototype.setBounds = function(bounds) {};

0 commit comments

Comments
 (0)