Hi Nirish,
You’d better use the events in MarkerOverlay instead of Marker to implement this, and the arguments of those events contains both the marker you click on and the id of the MarkerOverlay that the marker belongs to. Followings is the sample code, please have a try to see if it helps.
SimpleMarkerOverlay markerOverlay = new SimpleMarkerOverlay();
markerOverlay.MouseEnter += new EventHandler<MouseEnterMarkerOverlayEventArgs>(markerOverlay_MouseEnter);
void markerOverlay_MouseEnter(object sender, MouseEnterMarkerOverlayEventArgs e)
{
// This is the canvs of marker overlay which the mouse enter in.
Canvas currentMarkerOverlayCanvas = (Canvas)sender;
// This is the id of the marker overlay which the mouse enter in.
string markerOverlayId = currentMarkerOverlayCanvas.Name;
// This the marker which mouse enter in.
Marker currentMarker = (Marker)e.CurrentMarker;
}
Any more questions please let me know.
Thanks,
Sun