mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	Nearby: Markers now show place via pin base (#6090)
This commit is contained in:
		
							parent
							
								
									46cefa4899
								
							
						
					
					
						commit
						d2751595cb
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -1870,7 +1870,8 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment | |||
|                     place.getLongDescription()) : place.getLongDescription()); | ||||
|         } | ||||
|         marker.setTextLabelFontSize(40); | ||||
|         marker.setAnchor(Marker.ANCHOR_CENTER, Marker.ANCHOR_TOP); | ||||
|         // anchorV is 21.707/28.0 as icon height is 28dp while the pin base is at 21.707dp from top | ||||
|         marker.setAnchor(Marker.ANCHOR_CENTER, 0.77525f); | ||||
|         marker.setOnMarkerClickListener((marker1, mapView) -> { | ||||
|             if (clickedMarker != null) { | ||||
|                 clickedMarker.closeInfoWindow(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tanmay Gupta
						Tanmay Gupta