Skip to content

Commit bd74219

Browse files
chore: sync updates to google.maps
1 parent 2980404 commit bd74219

2 files changed

Lines changed: 116 additions & 20 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// No tests required for generated types
2-
// Synced from: https://github.com/googlemaps/js-types/commit/5cd1cf9ec8cfc56a48469df7ab18b6a658abc2a0
2+
// Synced from: https://github.com/googlemaps/js-types/commit/d3a3a10fcb08a5cc8f21b856c6bab97c2c321ffe
33
google.maps.Map;

types/google.maps/index.d.ts

Lines changed: 115 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3456,6 +3456,12 @@ declare namespace google.maps {
34563456
* initialized then the result is <code>undefined</code>.
34573457
*/
34583458
getHeading(): number | undefined;
3459+
/**
3460+
* Returns whether heading interactions are enabled. This option is only in
3461+
* effect when the map is a vector map. If not set in code, then the cloud
3462+
* configuration for the map ID will be used (if available).
3463+
*/
3464+
getHeadingInteractionEnabled(): boolean | null;
34593465
/**
34603466
* Informs the caller of the current capabilities available to the map based
34613467
* on the Map ID that was provided.
@@ -3489,6 +3495,12 @@ declare namespace google.maps {
34893495
* <code>setTilt</code>. See <code>setTilt</code> for details.
34903496
*/
34913497
getTilt(): number | undefined;
3498+
/**
3499+
* Returns whether tilt interactions are enabled. This option is only in
3500+
* effect when the map is a vector map. If not set in code, then the cloud
3501+
* configuration for the map ID will be used (if available).
3502+
*/
3503+
getTiltInteractionEnabled(): boolean | null;
34923504
/**
34933505
* Returns the zoom of the map. If the zoom has not been set then the result
34943506
* is <code>undefined</code>.
@@ -3556,8 +3568,18 @@ declare namespace google.maps {
35563568
* imagery.
35573569
*/
35583570
setHeading(heading: number): void;
3571+
/**
3572+
* Sets whether heading interactions are enabled. This option is only in
3573+
* effect when the map is a vector map. If not set in code, then the cloud
3574+
* configuration for the map ID will be used (if available).
3575+
*/
3576+
setHeadingInteractionEnabled(headingInteractionEnabled: boolean): void;
35593577
setMapTypeId(mapTypeId: string): void;
35603578
setOptions(options: google.maps.MapOptions | null): void;
3579+
/**
3580+
* Sets the current RenderingType of the map.
3581+
*/
3582+
setRenderingType(renderingType: google.maps.RenderingType): void;
35613583
/**
35623584
* Binds a <code>StreetViewPanorama</code> to the map. This panorama
35633585
* overrides the default <code>StreetViewPanorama</code>, allowing the map
@@ -3568,9 +3590,9 @@ declare namespace google.maps {
35683590
setStreetView(panorama: google.maps.StreetViewPanorama | null): void;
35693591
/**
35703592
* For vector maps, sets the angle of incidence of the map. The allowed
3571-
* values are restricted depending on the zoom level of the map. For raster
3572-
* maps, controls the automatic switching behavior for the angle of
3573-
* incidence of the map. The only allowed values are <code>0</code> and
3593+
* values are restricted depending on the zoom level of the map. <br><br>
3594+
* For raster maps, controls the automatic switching behavior for the angle
3595+
* of incidence of the map. The only allowed values are <code>0</code> and
35743596
* <code>45</code>. <code>setTilt(0)</code> causes the map to always use a
35753597
* 0&deg; overhead view regardless of the zoom level and viewport.
35763598
* <code>setTilt(45)</code> causes the tilt angle to automatically switch to
@@ -3586,6 +3608,12 @@ declare namespace google.maps {
35863608
* unpredictable effects.
35873609
*/
35883610
setTilt(tilt: number): void;
3611+
/**
3612+
* Sets whether tilt interactions are enabled. This option is only in effect
3613+
* when the map is a vector map. If not set in code, then the cloud
3614+
* configuration for the map ID will be used (if available).
3615+
*/
3616+
setTiltInteractionEnabled(tiltInteractionEnabled: boolean): void;
35893617
/**
35903618
* Sets the zoom of the map.
35913619
* @param zoom Larger zoom values correspond to a higher resolution.
@@ -3716,19 +3744,49 @@ declare namespace google.maps {
37163744
* The center latitude/longitude of the map.
37173745
*/
37183746
center: google.maps.LatLng | google.maps.LatLngLiteral | null;
3747+
/**
3748+
* Whether the map should allow user control of the camera heading
3749+
* (rotation). This option is only in effect when the map is a vector map.
3750+
* If not set in code, then the cloud configuration for the map ID will be
3751+
* used (if available).
3752+
* @defaultValue <code>false</code>
3753+
*/
3754+
headingInteractionDisabled: boolean | null;
37193755
/**
37203756
* A reference to the {@link google.maps.Map} that the MapElement uses
37213757
* internally.
37223758
*/
37233759
innerMap: google.maps.Map;
37243760
/**
3725-
* The Map ID of the map. See the <a
3726-
* href="https://developers.google.com/maps/documentation/get-map-id">Map ID
3727-
* documentation</a> for more information.
3761+
* The <a
3762+
* href="https://developers.google.com/maps/documentation/get-map-id">Map
3763+
* ID</a> of the map. This parameter cannot be set or changed after a map is
3764+
* instantiated. {@link google.maps.Map.DEMO_MAP_ID} can be used to try out
3765+
* features that require a map ID but which do not require cloud enablement.
37283766
*/
37293767
mapId: string | null;
37303768
/**
3731-
* The zoom level of the map.
3769+
* Whether the map should be a raster or vector map. This parameter cannot
3770+
* be set or changed after a map is instantiated. If not set, then the cloud
3771+
* configuration for the map ID will determine the rendering type (if
3772+
* available). Please note that vector maps may not be available for all
3773+
* devices and browsers and the map will fall back to a raster map as
3774+
* needed.
3775+
* @defaultValue {@link google.maps.RenderingType.VECTOR}
3776+
*/
3777+
renderingType: google.maps.RenderingType | null;
3778+
/**
3779+
* Whether the map should allow user control of the camera tilt. This option
3780+
* is only in effect when the map is a vector map. If not set in code, then
3781+
* the cloud configuration for the map ID will be used (if available).
3782+
* @defaultValue <code>false</code>
3783+
*/
3784+
tiltInteractionDisabled: boolean | null;
3785+
/**
3786+
* The zoom level of the map. Valid zoom values are numbers from zero up to
3787+
* the supported <a
3788+
* href="https://developers.google.com/maps/documentation/javascript/maxzoom">maximum
3789+
* zoom level</a>. Larger zoom values correspond to a higher resolution.
37323790
*/
37333791
zoom: number | null;
37343792
}
@@ -3740,21 +3798,27 @@ declare namespace google.maps {
37403798
*/
37413799
export interface MapElementOptions {
37423800
/**
3743-
* The initial Map center.
3801+
* See {@link google.maps.MapElement.center}.
37443802
*/
37453803
center?: google.maps.LatLng | google.maps.LatLngLiteral | null;
37463804
/**
3747-
* The <a
3748-
* href="https://developers.google.com/maps/documentation/get-map-id">Map
3749-
* ID</a> of the map. This parameter cannot be set or changed after a map is
3750-
* instantiated.
3805+
* See {@link google.maps.MapElement.headingInteractionDisabled}.
3806+
*/
3807+
headingInteractionDisabled?: boolean | null;
3808+
/**
3809+
* See {@link google.maps.MapElement.mapId}.
37513810
*/
37523811
mapId?: string | null;
37533812
/**
3754-
* The initial Map zoom level. Valid zoom values are numbers from zero up to
3755-
* the supported <a
3756-
* href="https://developers.google.com/maps/documentation/javascript/maxzoom">maximum
3757-
* zoom level</a>. Larger zoom values correspond to a higher resolution.
3813+
* See {@link google.maps.MapElement.renderingType}.
3814+
*/
3815+
renderingType?: google.maps.RenderingType | null;
3816+
/**
3817+
* See {@link google.maps.MapElement.tiltInteractionDisabled}.
3818+
*/
3819+
tiltInteractionDisabled?: boolean | null;
3820+
/**
3821+
* See {@link google.maps.MapElement.zoom}.
37583822
*/
37593823
zoom?: number | null;
37603824
}
@@ -3882,6 +3946,14 @@ declare namespace google.maps {
38823946
* angle for which imagery is available.
38833947
*/
38843948
heading?: number | null;
3949+
/**
3950+
* Whether the map should allow user control of the camera heading
3951+
* (rotation). This option is only in effect when the map is a vector map.
3952+
* If not set in code, then the cloud configuration for the map ID will be
3953+
* used (if available).
3954+
* @defaultValue <code>false</code>
3955+
*/
3956+
headingInteractionEnabled?: boolean | null;
38853957
/**
38863958
* Whether the map should allow fractional zoom levels. Listen to
38873959
* <code>isfractionalzoomenabled_changed</code> to know when the default has
@@ -3899,7 +3971,8 @@ declare namespace google.maps {
38993971
* The <a
39003972
* href="https://developers.google.com/maps/documentation/get-map-id">Map
39013973
* ID</a> of the map. This parameter cannot be set or changed after a map is
3902-
* instantiated.
3974+
* instantiated. {@link google.maps.Map.DEMO_MAP_ID} can be used to try out
3975+
* features that require a map ID but which do not require cloud enablement.
39033976
*/
39043977
mapId?: string | null;
39053978
/**
@@ -3946,6 +4019,16 @@ declare namespace google.maps {
39464019
* @deprecated The Pan control is deprecated as of September 2015.
39474020
*/
39484021
panControlOptions?: google.maps.PanControlOptions | null;
4022+
/**
4023+
* Whether the map should be a raster or vector map. This parameter cannot
4024+
* be set or changed after a map is instantiated. If not set, then the cloud
4025+
* configuration for the map ID will determine the rendering type (if
4026+
* available). Please note that vector maps may not be available for all
4027+
* devices and browsers and the map will fall back to a raster map as
4028+
* needed.
4029+
* @defaultValue {@link google.maps.RenderingType.RASTER}
4030+
*/
4031+
renderingType?: google.maps.RenderingType | null;
39494032
/**
39504033
* Defines a boundary that restricts the area of the map accessible to
39514034
* users. When set, a user can only pan and zoom while the camera view stays
@@ -3997,7 +4080,10 @@ declare namespace google.maps {
39974080
/**
39984081
* Styles to apply to each of the default map types. Note that for
39994082
* <code>satellite</code>/<code>hybrid</code> and <code>terrain</code>
4000-
* modes, these styles will only apply to labels and geometry.
4083+
* modes, these styles will only apply to labels and geometry. This feature
4084+
* is not available when using a map ID, or when using vector maps (use <a
4085+
* href="https://developers.google.com/maps/documentation/cloud-customization">cloud-based
4086+
* maps styling</a> instead).
40014087
*/
40024088
styles?: google.maps.MapTypeStyle[] | null;
40034089
/**
@@ -4019,6 +4105,13 @@ declare namespace google.maps {
40194105
* yield unpredictable effects.
40204106
*/
40214107
tilt?: number | null;
4108+
/**
4109+
* Whether the map should allow user control of the camera tilt. This option
4110+
* is only in effect when the map is a vector map. If not set in code, then
4111+
* the cloud configuration for the map ID will be used (if available).
4112+
* @defaultValue <code>false</code>
4113+
*/
4114+
tiltInteractionEnabled?: boolean | null;
40224115
/**
40234116
* The initial Map zoom level. Valid zoom values are numbers from zero up to
40244117
* the supported <a
@@ -7162,7 +7255,10 @@ declare namespace google.maps {
71627255
* after removing. The <code>onDraw()</code> method will then be called
71637256
* whenever a map property changes that could change the position of the
71647257
* element, such as zoom, center, or map type. WebGLOverlayView may only be
7165-
* added to a vector map having a {@link google.maps.MapOptions.mapId}.
7258+
* added to a vector map having a {@link google.maps.MapOptions.mapId}
7259+
* (including maps set to the {@link google.maps.RenderingType.VECTOR} {@link
7260+
* google.maps.MapOptions.renderingType} and using {@link
7261+
* google.maps.Map.DEMO_MAP_ID} as the {@link google.maps.MapOptions.mapId}).
71667262
*
71677263
* Access by calling `const {WebGLOverlayView} = await
71687264
* google.maps.importLibrary("maps")`. See

0 commit comments

Comments
 (0)