Skip to content

Commit 5b69d4f

Browse files
kabbirborn
authored andcommitted
Fix overlay removal bug (react-native-maps#2197)
1 parent 8c73968 commit 5b69d4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/android/src/main/java/com/airbnb/android/react/maps/AirMapOverlay.java

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public void addToMap(GoogleMap map) {
100100

101101
@Override
102102
public void removeFromMap(GoogleMap map) {
103+
this.map = null;
103104
if (this.groundOverlay != null) {
104105
this.groundOverlay.remove();
105106
this.groundOverlay = null;

0 commit comments

Comments
 (0)