[android] #5285 - bring selected MarkerView to the front

Fixes #5285
This commit is contained in:
Ivo van Dongen
2016-06-09 10:26:40 +02:00
parent c9d78f3f62
commit 5782c9a6ba
2 changed files with 3 additions and 1 deletions

View File

@@ -210,6 +210,7 @@ public class MarkerViewManager {
mapboxMap.selectMarker(marker);
}
marker.setSelected(true);
convertView.bringToFront();
}
}

View File

@@ -55,7 +55,8 @@ public class MarkerViewActivity extends AppCompatActivity {
new LatLng(38.909698, -77.029642),
new LatLng(38.907227, -77.036530),
new LatLng(38.905607, -77.031916),
new LatLng(38.889441, -77.050134)
new LatLng(38.889441, -77.050134),
new LatLng(38.888000, -77.050000) //Slight overlap to show re-ordering on selection
};
@Override