Skip to content

Instantly share code, notes, and snippets.


espritm/CustomGoogleMapInfoWindow.cs Secret

Last active Apr 11, 2017
What would you like to do?
public class CustomGoogleMapInfoWindow : Java.Lang.Object, GoogleMap.IInfoWindowAdapter
private Dictionary<string, ClusterItem> m_dicAllMarkerOnMap;
public CustomGoogleMapInfoWindow(Activity context, Dictionary<string, ClusterItem> dicAllMarkerOnMap)
m_dicAllMarkerOnMap = dicAllMarkerOnMap;
public View GetInfoContents(Marker marker)
//Retrieve the ClusterItem associated to the marker
ClusterItem clusterItem = null;
m_dicAllMarkerOnMap.TryGetValue(m_currentMarker.Id, out clusterItem);
//Add the custom information to the info window
if (clusterItem != null)
textviewDescription.Text += "\nMore info : " + clusterItem.m_sMoreCustomInformation;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment