From d2ae8ffe19ee6e912c2cc942180c884a77300b69 Mon Sep 17 00:00:00 2001 From: Kenneth van Ewijk Date: Wed, 16 Dec 2015 16:45:44 +0100 Subject: [PATCH] Setup to adding waypoints and landmarks --- NavCityBreda/Model/Landmark.cs | 17 +++++++++++++++++ NavCityBreda/Model/Waypoint.cs | 12 ++++++++++++ NavCityBreda/Views/MapView.xaml | 2 +- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 NavCityBreda/Model/Landmark.cs diff --git a/NavCityBreda/Model/Landmark.cs b/NavCityBreda/Model/Landmark.cs new file mode 100644 index 0000000..5a2ab95 --- /dev/null +++ b/NavCityBreda/Model/Landmark.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Windows.Devices.Geolocation; + +namespace NavCityBreda.Model +{ + class Landmark : Waypoint + { + public Landmark(Geopoint p) : base (p) + { + + } + } +} diff --git a/NavCityBreda/Model/Waypoint.cs b/NavCityBreda/Model/Waypoint.cs index fde0d43..9d7b243 100644 --- a/NavCityBreda/Model/Waypoint.cs +++ b/NavCityBreda/Model/Waypoint.cs @@ -3,10 +3,22 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using Windows.Devices.Geolocation; namespace NavCityBreda.Model { class Waypoint { + Geopoint location; + + public Waypoint(Geopoint p) + { + location = p; + } + + public Waypoint(int a, int la, int lo) + { + location = new Geopoint(new BasicGeoposition() { Altitude = a, Latitude = la, Longitude = lo }); + } } } diff --git a/NavCityBreda/Views/MapView.xaml b/NavCityBreda/Views/MapView.xaml index 82c6b07..9138097 100644 --- a/NavCityBreda/Views/MapView.xaml +++ b/NavCityBreda/Views/MapView.xaml @@ -13,6 +13,6 @@ - +