[android] Make markers View.GONE when being added for the first time to the map

Fixes #5439
This commit is contained in:
Tobrun Van Nuland
2016-06-23 09:13:38 +02:00
committed by Antonio Zugaldia
parent 6b1a753fd4
commit cff1a8929f

View File

@@ -359,7 +359,7 @@ public class MarkerViewManager {
adaptedView.setAlpha(marker.getAlpha());
// visible
adaptedView.setVisibility(marker.isVisible() ? View.VISIBLE : View.GONE);
adaptedView.setVisibility(View.GONE);
if (mapboxMap.getSelectedMarkers().contains(marker)) {
// if a marker to be shown was selected
@@ -386,6 +386,7 @@ public class MarkerViewManager {
markerViewMap.put(marker, adaptedView);
if (convertView == null) {
adaptedView.setVisibility(View.GONE);
mapView.getMarkerViewContainer().addView(adaptedView);
}
}