From d105458a1bd07a7683136d76c0d099fd2fd1ac67 Mon Sep 17 00:00:00 2001 From: Colin Doig Date: Tue, 2 Jul 2019 05:17:10 +1200 Subject: [PATCH] googlemaps - google.maps.Map.getProjection() can return null (#36559) * add ImageMapType properties. ImageMapTypeOptions.tileSize is required add StyledMapType properties * google.maps.Map.getProjection() can return null. * google.maps.Map.getProjection() can return null. --- types/googlemaps/googlemaps-tests.ts | 2 ++ types/googlemaps/index.d.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/types/googlemaps/googlemaps-tests.ts b/types/googlemaps/googlemaps-tests.ts index b6fce2c906..427187c357 100644 --- a/types/googlemaps/googlemaps-tests.ts +++ b/types/googlemaps/googlemaps-tests.ts @@ -97,6 +97,8 @@ map.panToBounds( } ); +map.getProjection() // $ExpectType Projection | null + /***** Data *****/ new google.maps.Data(); diff --git a/types/googlemaps/index.d.ts b/types/googlemaps/index.d.ts index 0b2af2fc1c..a26ad3d639 100644 --- a/types/googlemaps/index.d.ts +++ b/types/googlemaps/index.d.ts @@ -51,7 +51,7 @@ declare namespace google.maps { getDiv(): Element; getHeading(): number; getMapTypeId(): MapTypeId | string; - getProjection(): Projection; + getProjection(): Projection | null; getStreetView(): StreetViewPanorama; getTilt(): number; getZoom(): number;