Skip to content

Commit 16c2734

Browse files
chore: sync changes for Maps JS API v3.54.12.
PiperOrigin-RevId: 579012153
1 parent 1548d63 commit 16c2734

File tree

1 file changed

+88
-30
lines changed

1 file changed

+88
-30
lines changed

index.d.ts

Lines changed: 88 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3852,23 +3852,13 @@ declare namespace google.maps {
38523852
*/
38533853
noClear?: boolean|null;
38543854
/**
3855-
* The enabled/disabled state of the Pan control. <p> Note: The Pan control
3856-
* is not available in the new set of controls introduced in v3.22 of the
3857-
* Google Maps JavaScript API. While using v3.22 and v3.23, you can choose
3858-
* to use the earlier set of controls rather than the new controls, thus
3859-
* making the Pan control available as part of the old control set. See <a
3860-
* href="https://developers.google.com/maps/articles/v322-controls-diff">What&#39;s
3861-
* New in the v3.22 Map Controls</a>.
3855+
* The enabled/disabled state of the Pan control. <p>
3856+
* @deprecated The Pan control is deprecated as of September 2015.
38623857
*/
38633858
panControl?: boolean|null;
38643859
/**
3865-
* The display options for the Pan control. <p> Note: The Pan control is not
3866-
* available in the new set of controls introduced in v3.22 of the Google
3867-
* Maps JavaScript API. While using v3.22 and v3.23, you can choose to use
3868-
* the earlier set of controls rather than the new controls, thus making the
3869-
* Pan control available as part of the old control set. See <a
3870-
* href="https://developers.google.com/maps/articles/v322-controls-diff">What&#39;s
3871-
* New in the v3.22 Map Controls</a>.
3860+
* The display options for the Pan control. <p>
3861+
* @deprecated The Pan control is deprecated as of September 2015.
38723862
*/
38733863
panControlOptions?: google.maps.PanControlOptions|null;
38743864
/**
@@ -4225,6 +4215,7 @@ declare namespace google.maps {
42254215
TrafficLayer: typeof google.maps.TrafficLayer;
42264216
TransitLayer: typeof google.maps.TransitLayer;
42274217
WebGLOverlayView: typeof google.maps.WebGLOverlayView;
4218+
ZoomChangeEvent: typeof google.maps.ZoomChangeEvent;
42284219
}
42294220
/**
42304221
* Base class for managing network errors in Maps.
@@ -7073,6 +7064,27 @@ declare namespace google.maps {
70737064
*/
70747065
gl: WebGLRenderingContext;
70757066
}
7067+
/**
7068+
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
7069+
*
7070+
* This event is created from monitoring zoom change.
7071+
*
7072+
* Access by calling `const {ZoomChangeEvent} = await
7073+
* google.maps.importLibrary("maps")`. See
7074+
* https://developers.google.com/maps/documentation/javascript/libraries.
7075+
*/
7076+
export class ZoomChangeEvent extends Event {
7077+
/**
7078+
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
7079+
*
7080+
* This event is created from monitoring zoom change.
7081+
*
7082+
* Access by calling `const {ZoomChangeEvent} = await
7083+
* google.maps.importLibrary("maps")`. See
7084+
* https://developers.google.com/maps/documentation/javascript/libraries.
7085+
*/
7086+
constructor();
7087+
}
70767088
/**
70777089
* Options for the rendering of the zoom control.
70787090
*/
@@ -12188,34 +12200,38 @@ declare namespace google.maps.places {
1218812200
/**
1218912201
* Available only in the v=alpha channel: https://goo.gle/js-alpha-channel.
1219012202
*
12191-
* Implementation of AutocompleteView for Places API
12203+
* <ul>
12204+
* <li>PlaceAutocompleteElement is an <code>HTMLElement</code> subclass which
12205+
* provides a UI component for the Places Autocomplete API. After loading the
12206+
* <code>places</code> library, an input with autocomplete functionality can
12207+
* be created in HTML. For example: <pre><code>&lt;gmp-placeautocomplete
12208+
* &gt;&lt;/gmp-placeautocomplete&gt;</code></pre></li>
12209+
* </ul>
1219212210
*
1219312211
* Access by calling `const {PlaceAutocompleteElement} = await
1219412212
* google.maps.importLibrary("places")`. See
1219512213
* https://developers.google.com/maps/documentation/javascript/libraries.
1219612214
*/
12197-
export class PlaceAutocompleteElement implements
12215+
export class PlaceAutocompleteElement extends HTMLElement implements
1219812216
google.maps.places.PlaceAutocompleteElementOptions {
1219912217
/**
1220012218
* Available only in the v=alpha channel: https://goo.gle/js-alpha-channel.
1220112219
*
12202-
* Implementation of AutocompleteView for Places API
12220+
* <ul>
12221+
* <li>PlaceAutocompleteElement is an <code>HTMLElement</code> subclass
12222+
* which provides a UI component for the Places Autocomplete API. After
12223+
* loading the <code>places</code> library, an input with autocomplete
12224+
* functionality can be created in HTML. For example:
12225+
* <pre><code>&lt;gmp-placeautocomplete
12226+
* &gt;&lt;/gmp-placeautocomplete&gt;</code></pre></li>
12227+
* </ul>
1220312228
*
1220412229
* Access by calling `const {PlaceAutocompleteElement} = await
1220512230
* google.maps.importLibrary("places")`. See
1220612231
* https://developers.google.com/maps/documentation/javascript/libraries.
1220712232
*/
1220812233
constructor(options: google.maps.places.PlaceAutocompleteElementOptions);
12209-
/**
12210-
* Adds the given listener function to the given event name.
12211-
*/
12212-
addListener(eventName: string, handler: Function):
12213-
google.maps.MapsEventListener;
1221412234
componentRestrictions?: google.maps.places.ComponentRestrictions|null;
12215-
/**
12216-
* This Field is read-only. The DOM Element backing the view.
12217-
*/
12218-
element?: HTMLElement|SVGElement|null;
1221912235
/**
1222012236
* The input element to show autocompletions for.
1222112237
*/
@@ -12241,10 +12257,6 @@ declare namespace google.maps.places {
1224112257
* country.
1224212258
*/
1224312259
componentRestrictions?: google.maps.places.ComponentRestrictions|null;
12244-
/**
12245-
* This Field is read-only. The DOM Element backing the view.
12246-
*/
12247-
element?: HTMLElement|SVGElement|null;
1224812260
/**
1224912261
* The input element to show autocompletions for.
1225012262
*/
@@ -12289,6 +12301,52 @@ declare namespace google.maps.places {
1228912301
*/
1229012302
types?: string[]|null;
1229112303
}
12304+
/**
12305+
* Available only in the v=alpha channel: https://goo.gle/js-alpha-channel.
12306+
*
12307+
* This event is created after the user selects a place with the Place
12308+
* Autocomplete Element. Access the selection with <code>event.place</code>.
12309+
*
12310+
* Access by calling `const {PlaceAutocompletePlaceSelectEvent} = await
12311+
* google.maps.importLibrary("places")`. See
12312+
* https://developers.google.com/maps/documentation/javascript/libraries.
12313+
*/
12314+
export class PlaceAutocompletePlaceSelectEvent extends Event {
12315+
/**
12316+
* Available only in the v=alpha channel: https://goo.gle/js-alpha-channel.
12317+
*
12318+
* This event is created after the user selects a place with the Place
12319+
* Autocomplete Element. Access the selection with <code>event.place</code>.
12320+
*
12321+
* Access by calling `const {PlaceAutocompletePlaceSelectEvent} = await
12322+
* google.maps.importLibrary("places")`. See
12323+
* https://developers.google.com/maps/documentation/javascript/libraries.
12324+
*/
12325+
constructor();
12326+
}
12327+
/**
12328+
* Available only in the v=alpha channel: https://goo.gle/js-alpha-channel.
12329+
*
12330+
* This event is emitted by the PlaceAutocompleteElement when there is an
12331+
* issue with the network request.
12332+
*
12333+
* Access by calling `const {PlaceAutocompleteRequestErrorEvent} = await
12334+
* google.maps.importLibrary("places")`. See
12335+
* https://developers.google.com/maps/documentation/javascript/libraries.
12336+
*/
12337+
export class PlaceAutocompleteRequestErrorEvent extends Event {
12338+
/**
12339+
* Available only in the v=alpha channel: https://goo.gle/js-alpha-channel.
12340+
*
12341+
* This event is emitted by the PlaceAutocompleteElement when there is an
12342+
* issue with the network request.
12343+
*
12344+
* Access by calling `const {PlaceAutocompleteRequestErrorEvent} = await
12345+
* google.maps.importLibrary("places")`. See
12346+
* https://developers.google.com/maps/documentation/javascript/libraries.
12347+
*/
12348+
constructor();
12349+
}
1229212350
/**
1229312351
* A Place details query to be sent to the <code>PlacesService</code>.
1229412352
*/

0 commit comments

Comments
 (0)