Skip to content

Commit

Permalink
Uncomment code
Browse files Browse the repository at this point in the history
  • Loading branch information
JosueSquareSix committed Oct 20, 2024
1 parent da67277 commit ea9b530
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Samples/Sample.Android/UI/CustomMarkerClusteringDemoActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ protected override void OnBeforeClusterItemRendered(Java.Lang.Object item, Marke
markerOptions.SetIcon(getItemIcon(person)).SetTitle(person.name);
}

//public void OnClusterItemUpdated(Person person, Marker marker)
//{
// // Same implementation as onBeforeClusterItemRendered() (to update cached markers)
// marker.SetIcon(getItemIcon(person));
// marker.Title = person.Name;
//}
public void OnClusterItemUpdated(Person person, Marker marker)
{
// Same implementation as onBeforeClusterItemRendered() (to update cached markers)
marker.SetIcon(getItemIcon(person));
marker.Title = person.name;
}

/**
* Get a descriptor for a single person (i.e., a marker outside a cluster) from their
Expand All @@ -89,11 +89,11 @@ protected override void OnBeforeClusterRendered(ICluster cluster, MarkerOptions
markerOptions.SetIcon(getClusterIcon(cluster));
}

//protected override void OnClusterUpdated(ICluster cluster, Marker marker)
//{
// // Same implementation as onBeforeClusterRendered() (to update cached markers)
// marker.SetIcon(getClusterIcon(cluster));
//}
protected override void OnClusterUpdated(ICluster cluster, Marker marker)
{
// Same implementation as onBeforeClusterRendered() (to update cached markers)
marker.SetIcon(getClusterIcon(cluster));
}

/**
* Get a descriptor for multiple people (a cluster) to be used for a marker icon. Note: this
Expand Down

0 comments on commit ea9b530

Please sign in to comment.