Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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);
        }