mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	Nearby: Centermost pins now appear on top
This commit is contained in:
		
							parent
							
								
									7825a9945e
								
							
						
					
					
						commit
						c3deea4849
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -1887,9 +1887,12 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment | |||
|     @Override | ||||
|     public void replaceMarkerOverlays(final List<MarkerPlaceGroup> markerPlaceGroups) { | ||||
|         ArrayList<Marker> newMarkers = new ArrayList<>(markerPlaceGroups.size()); | ||||
|         for (MarkerPlaceGroup markerPlaceGroup : markerPlaceGroups) { | ||||
|         // iterate in reverse so that the nearest pins get rendered on top | ||||
|         for (int i = markerPlaceGroups.size() - 1; i >= 0; i--) { | ||||
|             newMarkers.add( | ||||
|                 convertToMarker(markerPlaceGroup.getPlace(), markerPlaceGroup.getIsBookmarked())); | ||||
|                 convertToMarker(markerPlaceGroups.get(i).getPlace(), | ||||
|                 markerPlaceGroups.get(i).getIsBookmarked()) | ||||
|             ); | ||||
|         } | ||||
|         clearAllMarkers(); | ||||
|         binding.map.getOverlays().addAll(newMarkers); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 savsch
						savsch