protected void RemoveMarker(object item) { if (MarkerWrappers != null && MarkerWrappers.Any()) { var marker = MarkerWrappers.FirstOrDefault(x => x.Item.Equals(item))?.Marker; marker?.Remove(); } }
public object GetRawItem(Marker marker) { object item = null; if (MarkerWrappers != null && MarkerWrappers.Any()) { item = MarkerWrappers.FirstOrDefault(x => x.Marker.Id == marker.Id)?.Item; } return(item); }