Setup to adding waypoints and landmarks

This commit is contained in:
2015-12-16 16:45:44 +01:00
parent edf053c186
commit d2ae8ffe19
3 changed files with 30 additions and 1 deletions
+17
View File
@@ -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)
{
}
}
}
+12
View File
@@ -3,10 +3,22 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Windows.Devices.Geolocation;
namespace NavCityBreda.Model namespace NavCityBreda.Model
{ {
class Waypoint 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 });
}
} }
} }
+1 -1
View File
@@ -13,6 +13,6 @@
<RowDefinition Height="*"/> <RowDefinition Height="*"/>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<map:MapControl Grid.Row="0" Name="Map" ZoomInteractionMode="GestureAndControl" PanInteractionMode="Auto" TiltInteractionMode="GestureOnly" RotateInteractionMode="GestureOnly" MapServiceToken="74Y70e71HVjjN7lnx4Eh~3wugTlBDe2DbPGuR_AM2aA~AjMbg-pU2qn4gYf97oH0GZI1oY9Jc4vH-4WyIRyoYQM0Q71CnfbWalEN37bdSgms" /> <map:MapControl Grid.Row="0" Name="Map" ZoomInteractionMode="GestureAndControl" PanInteractionMode="Auto" TiltInteractionMode="ControlOnly" RotateInteractionMode="GestureAndControl" MapServiceToken="74Y70e71HVjjN7lnx4Eh~3wugTlBDe2DbPGuR_AM2aA~AjMbg-pU2qn4gYf97oH0GZI1oY9Jc4vH-4WyIRyoYQM0Q71CnfbWalEN37bdSgms" />
</Grid> </Grid>
</Page> </Page>