7
7
*/
8
8
9
9
// Workaround for: https://github.com/bazelbuild/rules_nodejs/issues/1265
10
- /// <reference types="googlemaps " />
10
+ /// <reference types="google.maps " />
11
11
12
12
import {
13
13
ChangeDetectionStrategy ,
@@ -370,7 +370,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
370
370
* See
371
371
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.getCenter
372
372
*/
373
- getCenter ( ) : google . maps . LatLng {
373
+ getCenter ( ) : google . maps . LatLng | undefined {
374
374
this . _assertInitialized ( ) ;
375
375
return this . googleMap . getCenter ( ) ;
376
376
}
@@ -379,7 +379,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
379
379
* See
380
380
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.getClickableIcons
381
381
*/
382
- getClickableIcons ( ) : boolean {
382
+ getClickableIcons ( ) : boolean | undefined {
383
383
this . _assertInitialized ( ) ;
384
384
return this . googleMap . getClickableIcons ( ) ;
385
385
}
@@ -388,7 +388,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
388
388
* See
389
389
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.getHeading
390
390
*/
391
- getHeading ( ) : number {
391
+ getHeading ( ) : number | undefined {
392
392
this . _assertInitialized ( ) ;
393
393
return this . googleMap . getHeading ( ) ;
394
394
}
@@ -397,7 +397,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
397
397
* See
398
398
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.getMapTypeId
399
399
*/
400
- getMapTypeId ( ) : google . maps . MapTypeId | string {
400
+ getMapTypeId ( ) : google . maps . MapTypeId | string | undefined {
401
401
this . _assertInitialized ( ) ;
402
402
return this . googleMap . getMapTypeId ( ) ;
403
403
}
@@ -406,9 +406,9 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
406
406
* See
407
407
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.getProjection
408
408
*/
409
- getProjection ( ) : google . maps . Projection | null {
409
+ getProjection ( ) : google . maps . Projection | null {
410
410
this . _assertInitialized ( ) ;
411
- return this . googleMap . getProjection ( ) ;
411
+ return this . googleMap . getProjection ( ) || null ;
412
412
}
413
413
414
414
/**
@@ -424,7 +424,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
424
424
* See
425
425
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.getTilt
426
426
*/
427
- getTilt ( ) : number {
427
+ getTilt ( ) : number | undefined {
428
428
this . _assertInitialized ( ) ;
429
429
return this . googleMap . getTilt ( ) ;
430
430
}
@@ -433,7 +433,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
433
433
* See
434
434
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.getZoom
435
435
*/
436
- getZoom ( ) : number {
436
+ getZoom ( ) : number | undefined {
437
437
this . _assertInitialized ( ) ;
438
438
return this . googleMap . getZoom ( ) ;
439
439
}
0 commit comments