Skip to content

Commit a11c1f9

Browse files
author
Sebastian SIppl
committed
Added ondestroy call to dispose event.
1 parent db34278 commit a11c1f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

map-view.android.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ export class MapView extends MapViewBase {
4444
}
4545

4646
public disposeNativeView() {
47+
if(this.nativeView){
48+
this.nativeView.onDestroy();
49+
}
50+
if(this._gMap){
51+
this._gMap.setMyLocationEnabled(false);
52+
this._gMap.clear();
53+
}
4754
this._context = undefined;
4855
this._gMap = undefined;
4956
this._markers = undefined;

0 commit comments

Comments
 (0)