Skip to content

Commit

Permalink
Removed commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
adospace committed Mar 13, 2024
1 parent 4170e4b commit 31761df
Showing 1 changed file with 0 additions and 52 deletions.
52 changes: 0 additions & 52 deletions src/MauiReactor.Maps/Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,59 +9,7 @@ namespace MauiReactor.Maps;
[ScaffoldChildren(typeof(Microsoft.Maui.Controls.Maps.Circle), nameof(Microsoft.Maui.Controls.Maps.Map.MapElements))]
public partial class Map
{
//Dictionary<string, Microsoft.Maui.Controls.Maps.Pin> _pinElementItemMap = [];

//protected override void OnAddChild(VisualNode widget, Microsoft.Maui.Controls.BindableObject childControl)
//{
// //Validate.EnsureNotNull(NativeControl);
// var thisAsIMap = (IMap)this;
// if (childControl is Microsoft.Maui.Controls.Maps.Pin pinItem)
// {
// NativeControl.Pins.Insert(widget.ChildIndex, pinItem);
// //_pinElementItemMap[pinItem.Label] = pinItem;
// }
// //else if (childControl is Microsoft.Maui.Controls.Maps.Polygon polygonItem)
// //{
// // NativeControl.MapElements.Insert(widget.ChildIndex, polygonItem);
// // _polygonElementItemMap[childControl] = polygonItem;
// //}
// //else if (childControl is Microsoft.Maui.Controls.Maps.Polyline polylineItem)
// //{
// // NativeControl.MapElements.Insert(widget.ChildIndex, polylineItem);
// // _polylineElementItemMap[childControl] = polylineItem;
// //}
// //else if (childControl is Microsoft.Maui.Controls.Maps.Circle circleItem)
// //{
// // NativeControl.MapElements.Insert(widget.ChildIndex, circleItem);
// // _circleElementItemMap[childControl] = circleItem;
// //}

// base.OnAddChild(widget, childControl);
//}

//protected override void OnRemoveChild(VisualNode widget, Microsoft.Maui.Controls.BindableObject childControl)
//{
// //Validate.EnsureNotNull(NativeControl);
// var thisAsIMap = (IMap)this;
// if (childControl is Microsoft.Maui.Controls.Maps.Pin pinItem)
// {
// NativeControl.Pins.Remove(pinItem);
// }
// //else if (_polygonElementItemMap.TryGetValue(childControl, out var polygonItem))
// //{
// // NativeControl.MapElements.Remove(polygonItem);
// //}
// //else if (_polylineElementItemMap.TryGetValue(childControl, out var polylineItem))
// //{
// // NativeControl.MapElements.Remove(polylineItem);
// //}
// //else if (_circleElementItemMap.TryGetValue(childControl, out var circleItem))
// //{
// // NativeControl.MapElements.Remove(circleItem);
// //}

// base.OnRemoveChild(widget, childControl);
//}
}

[Scaffold(typeof(Microsoft.Maui.Controls.Maps.Pin))]
Expand Down

0 comments on commit 31761df

Please sign in to comment.