Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] #5285 - bring selected MarkerView to the front
Browse files Browse the repository at this point in the history
Fixes #5285
  • Loading branch information
ivovandongen committed Jun 9, 2016
1 parent c9d78f3 commit 5782c9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ public void select(@NonNull MarkerView marker, View convertView, MapboxMap.Marke
mapboxMap.selectMarker(marker);
}
marker.setSelected(true);
convertView.bringToFront();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5782c9a

Please sign in to comment.