-
-
Save espritm/a05778353b9703ce389c4869c4754bc4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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