Beispiel #1
0
 public void AddPoint(Coords coordinate)
 {
     positions.Add(new Position(coordinate.DegLatitude, coordinate.DegLongitude));
     Geopath.Clear();
     foreach (var p in positions)
     {
         Geopath.Add(p);
     }
     ;
 }
Beispiel #2
0
        public void GenerateGeoPath()
        {
            if (Geopath.Any())
            {
                return;
            }

            foreach (var position in Positions)
            {
                Geopath.Add(new Position(position.Latitude, position.Longitude));
            }
        }
Beispiel #3
0
 public Line(List <Coords> points) : base()
 {
     StrokeWidth = 8;
     StrokeColor = Color.Black;
     positions   = new List <Position>();
     foreach (var p in points)
     {
         positions.Add(new Position(p.DegLatitude, p.DegLongitude));
     }
     foreach (var p in positions)
     {
         Geopath.Add(p);
     }
     ;
 }