From 527855bcb951340cedd0820e6458b851d287883f Mon Sep 17 00:00:00 2001 From: James Macmillan Date: Thu, 6 May 2021 13:22:15 +0100 Subject: [PATCH] fix: bump error logging and error handling where this issue occurs --- src/map-view.ios.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/map-view.ios.ts b/src/map-view.ios.ts index 5135765..dff506a 100644 --- a/src/map-view.ios.ts +++ b/src/map-view.ios.ts @@ -214,7 +214,7 @@ class MapViewDelegateImpl extends NSObject implements GMSMapViewDelegate { public didTapMyLocationButtonForMapView(mapView: GMSMapView): boolean { const owner = this._owner.get(); - + if (owner) { owner.notifyMyLocationTapped(); // Should return false in order to center the map on user position @@ -356,7 +356,13 @@ export class MapView extends MapViewBase { } get ios(): any { - return this.nativeView; + try { + console.error('MapView.ios was called at', new Error('stack').stack) + return this.nativeView; + } catch (error) { + console.error('Returning nativeView caused error', error); + return null; + } } get gMap() {