public void AddLine(string name, List<PointLatLng> points, ColorInfo colorInfo, Feature featureInfo) { _context.Send(_ => { _overlay.Routes.Add(new GMapRoute(points, name) { Stroke = new Pen(Color.FromArgb((int) colorInfo.StrokeColor), colorInfo.StrokeWidth +2), IsHitTestVisible = true, Tag = featureInfo }); }, null); }
public void AddPolygon(string name, List<PointLatLng> points, ColorInfo colorInfo, Feature featureInfo) { _context.Send(_ => { _overlay.Polygons.Add(new GMapPolygon(points, name) { Fill = new SolidBrush(Color.FromArgb((int) colorInfo.FillColor)), Stroke = new Pen(Color.FromArgb((int) colorInfo.StrokeColor), colorInfo.StrokeWidth), IsHitTestVisible = true, Tag = featureInfo }); }, null); }