77 */
88
99// Workaround for: https://github.com/bazelbuild/rules_nodejs/issues/1265
10- /// <reference types="googlemaps " />
10+ /// <reference types="google.maps " />
1111
1212import {
1313 ChangeDetectionStrategy ,
@@ -370,7 +370,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
370370 * See
371371 * https://developers.google.com/maps/documentation/javascript/reference/map#Map.getCenter
372372 */
373- getCenter ( ) : google . maps . LatLng {
373+ getCenter ( ) : google . maps . LatLng | undefined {
374374 this . _assertInitialized ( ) ;
375375 return this . googleMap . getCenter ( ) ;
376376 }
@@ -379,7 +379,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
379379 * See
380380 * https://developers.google.com/maps/documentation/javascript/reference/map#Map.getClickableIcons
381381 */
382- getClickableIcons ( ) : boolean {
382+ getClickableIcons ( ) : boolean | undefined {
383383 this . _assertInitialized ( ) ;
384384 return this . googleMap . getClickableIcons ( ) ;
385385 }
@@ -388,7 +388,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
388388 * See
389389 * https://developers.google.com/maps/documentation/javascript/reference/map#Map.getHeading
390390 */
391- getHeading ( ) : number {
391+ getHeading ( ) : number | undefined {
392392 this . _assertInitialized ( ) ;
393393 return this . googleMap . getHeading ( ) ;
394394 }
@@ -397,7 +397,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
397397 * See
398398 * https://developers.google.com/maps/documentation/javascript/reference/map#Map.getMapTypeId
399399 */
400- getMapTypeId ( ) : google . maps . MapTypeId | string {
400+ getMapTypeId ( ) : google . maps . MapTypeId | string | undefined {
401401 this . _assertInitialized ( ) ;
402402 return this . googleMap . getMapTypeId ( ) ;
403403 }
@@ -406,9 +406,9 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
406406 * See
407407 * https://developers.google.com/maps/documentation/javascript/reference/map#Map.getProjection
408408 */
409- getProjection ( ) : google . maps . Projection | null {
409+ getProjection ( ) : google . maps . Projection | null {
410410 this . _assertInitialized ( ) ;
411- return this . googleMap . getProjection ( ) ;
411+ return this . googleMap . getProjection ( ) || null ;
412412 }
413413
414414 /**
@@ -424,7 +424,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
424424 * See
425425 * https://developers.google.com/maps/documentation/javascript/reference/map#Map.getTilt
426426 */
427- getTilt ( ) : number {
427+ getTilt ( ) : number | undefined {
428428 this . _assertInitialized ( ) ;
429429 return this . googleMap . getTilt ( ) ;
430430 }
@@ -433,7 +433,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
433433 * See
434434 * https://developers.google.com/maps/documentation/javascript/reference/map#Map.getZoom
435435 */
436- getZoom ( ) : number {
436+ getZoom ( ) : number | undefined {
437437 this . _assertInitialized ( ) ;
438438 return this . googleMap . getZoom ( ) ;
439439 }
0 commit comments