Parcourir la source

Changed lan-lon to geopoint. Removed debug lines

jancoow il y a 10 ans
Parent
commit
20f70c5479
1 fichiers modifiés avec 3 ajouts et 8 suppressions
  1. 3 8
      Breda-Tour/Data/waypoint.cs

+ 3 - 8
Breda-Tour/Data/waypoint.cs

@@ -3,21 +3,20 @@ using System.Collections.Generic;
 using Windows.UI.Xaml.Media.Imaging;
 using Windows.UI.Core;
 using Windows.UI.Xaml.Controls;
+using Windows.Devices.Geolocation;
 
 namespace Breda_Tour.Data
 {
     class Waypoint
     {
-        public float Lat { get; private set; }
-        public float Long { get; private set; }
+        public Geopoint Position { get; private set; }
         public String Title { get; private set; }
         public String Description { get; private set; }
         public List<Image> Photos { get; private set; }
 
         public Waypoint(float Lat, float Long, String Title, String Description, List<string> pictures)
         {
-            this.Lat = Lat;
-            this.Long = Long;
+            this.Position = new Geopoint(new BasicGeoposition() { Altitude = 0, Latitude = Lat, Longitude = Long });
             this.Title = Title;
             this.Description = Description;
             this.Photos = new List<Image>();
@@ -33,10 +32,6 @@ namespace Breda_Tour.Data
                             Name = source
                         });
                     }
-                    foreach (Image i in Photos)
-                    {
-                        System.Diagnostics.Debug.WriteLine(i.Name);
-                    }
                 });
             }
         }