Skip to content

Instantly share code, notes, and snippets.

@espritm
Last active April 11, 2017 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save espritm/a05778353b9703ce389c4869c4754bc4 to your computer and use it in GitHub Desktop.
Save espritm/a05778353b9703ce389c4869c4754bc4 to your computer and use it in GitHub Desktop.
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