From 88ad99a0e07a373e0cd5cd211b11c824466051b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20Fazekas?= Date: Tue, 22 Oct 2019 14:33:22 +0200 Subject: [PATCH] Add feature to queued features until all queued features are added to map (#485) --- .../com/mapbox/rctmgl/components/mapview/RCTMGLMapView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.java b/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.java index c049c423c..52d74223f 100644 --- a/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.java +++ b/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.java @@ -211,7 +211,7 @@ public void addFeature(View childView, int childPosition) { } if (feature != null) { - if (mMap != null) { + if (mQueuedFeatures == null) { feature.addToMap(this); mFeatures.add(childPosition, feature); } else {