react-native-maps 1.29.0 → 1.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -328,7 +328,11 @@ public class MapGradientPolyline extends MapFeature {
328
328
 
329
329
  @Override
330
330
  public void removeFromMap(Object map) {
331
+ if (tileOverlay == null) {
332
+ return;
333
+ }
331
334
  tileOverlay.remove();
335
+ tileOverlay = null;
332
336
  }
333
337
 
334
338
  public static class MutPoint {
@@ -107,7 +107,11 @@ public class MapHeatmap extends MapFeature {
107
107
 
108
108
  @Override
109
109
  public void removeFromMap(Object map) {
110
+ if (heatmap == null) {
111
+ return;
112
+ }
110
113
  heatmap.remove();
114
+ heatmap = null;
111
115
  }
112
116
 
113
117
  }
@@ -146,6 +146,10 @@ public class MapLocalTile extends MapFeature {
146
146
 
147
147
  @Override
148
148
  public void removeFromMap(Object map) {
149
+ if (tileOverlay == null) {
150
+ return;
151
+ }
149
152
  tileOverlay.remove();
153
+ tileOverlay = null;
150
154
  }
151
155
  }
@@ -202,6 +202,10 @@ public class MapUrlTile extends MapFeature {
202
202
 
203
203
  @Override
204
204
  public void removeFromMap(Object map) {
205
+ if (tileOverlay == null) {
206
+ return;
207
+ }
205
208
  tileOverlay.remove();
209
+ tileOverlay = null;
206
210
  }
207
211
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "types": "dist/src/index.d.ts",
8
8
  "author": "Leland Richardson <leland.m.richardson@gmail.com>",
9
9
  "homepage": "https://github.com/react-native-maps/react-native-maps#readme",
10
- "version": "1.29.0",
10
+ "version": "1.29.1",
11
11
  "license": "MIT",
12
12
  "scripts": {
13
13
  "lint": "eslint . --max-warnings 0",