react-native-maps 2.0.0-beta.2 → 2.0.0-beta.4

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.
@@ -50,9 +50,34 @@ repositories {
50
50
 
51
51
  dependencies {
52
52
  implementation 'com.facebook.react:react-native:+'
53
- implementation "com.google.android.gms:play-services-base:${safeExtGet('playServicesVersion', '18.1.0')}"
54
- implementation "com.google.android.gms:play-services-maps:${safeExtGet('playServicesVersion', '18.0.2')}"
55
- implementation "com.google.android.gms:play-services-location:20.0.0"
56
- implementation 'com.google.maps.android:android-maps-utils:3.4.0'
57
- implementation "androidx.work:work-runtime:2.7.1"
53
+ implementation('com.google.android.gms:play-services-base') {
54
+ version {
55
+ strictly '[18.0.1, 19.0.0['
56
+ prefer '18.1.0'
57
+ }
58
+ }
59
+ implementation('com.google.android.gms:play-services-maps') {
60
+ version {
61
+ strictly '[18.0.0, 19.0.0['
62
+ prefer '18.0.2'
63
+ }
64
+ }
65
+ implementation('com.google.android.gms:play-services-location') {
66
+ version {
67
+ strictly '[20.0.0, 21.0.0['
68
+ prefer '20.0.0'
69
+ }
70
+ }
71
+ implementation('com.google.maps.android:android-maps-utils') {
72
+ version {
73
+ strictly '[3.0.0, 4.0.0['
74
+ prefer '3.4.0'
75
+ }
76
+ }
77
+ implementation('androidx.work:work-runtime') {
78
+ version {
79
+ strictly '[2.7.1, 3.0.0['
80
+ prefer '2.7.1'
81
+ }
82
+ }
58
83
  }
@@ -770,10 +770,21 @@ public class MapView extends com.google.android.gms.maps.MapView implements Goog
770
770
  MapFeature feature = features.remove(index);
771
771
  if (feature instanceof MapMarker) {
772
772
  markerMap.remove(feature.getFeature());
773
+ feature.removeFromMap(markerCollection);
773
774
  } else if (feature instanceof MapHeatmap) {
774
775
  heatmapMap.remove(feature.getFeature());
776
+ feature.removeFromMap(map);
777
+ } else if(feature instanceof MapCircle) {
778
+ feature.removeFromMap(circleCollection);
779
+ } else if(feature instanceof MapOverlay) {
780
+ feature.removeFromMap(groundOverlayCollection);
781
+ } else if(feature instanceof MapPolygon) {
782
+ feature.removeFromMap(polygonCollection);
783
+ } else if(feature instanceof MapPolyline) {
784
+ feature.removeFromMap(polylineCollection);
785
+ } else {
786
+ feature.removeFromMap(map);
775
787
  }
776
- feature.removeFromMap(map);
777
788
  }
778
789
 
779
790
  public WritableMap makeClickEventData(LatLng point) {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "main": "lib/index.js",
6
6
  "author": "Leland Richardson <leland.m.richardson@gmail.com>",
7
7
  "homepage": "https://github.com/react-native-maps/react-native-maps#readme",
8
- "version": "2.0.0-beta.2",
8
+ "version": "2.0.0-beta.4",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",