Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
2 bump error logging and handling where the error occurs still
  • Loading branch information
jamescodesthings committed May 6, 2021
1 parent 03d1b65 commit 54b700c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/map-view.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 54b700c

Please sign in to comment.