diff --git a/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj b/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj
index 7abfac75..ab5540fc 100644
--- a/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj
+++ b/CampusAppWP8/CampusAppWP8/CampusAppWP8.csproj
@@ -97,6 +97,7 @@
App.xaml
+
diff --git a/CampusAppWP8/CampusAppWP8/Model/Campusmap/MapModel.cs b/CampusAppWP8/CampusAppWP8/Model/Campusmap/MapModel.cs
new file mode 100644
index 00000000..e425178e
--- /dev/null
+++ b/CampusAppWP8/CampusAppWP8/Model/Campusmap/MapModel.cs
@@ -0,0 +1,62 @@
+//-----------------------------------------------------------------------
+//
+// Company copyright tag.
+//
+// stubbfel
+// 20.06.2013
+//----------------------------------------------------------------------
+namespace CampusAppWP8.Model.Campusmap
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Text;
+ using System.Threading.Tasks;
+ using System.Windows;
+
+
+ public class MapModel
+ {
+
+ public MapModel()
+ {
+ }
+
+ public string ImageSource { get; set; }
+ public double ImageWidth { get; set; }
+ public double ImageHeight { get; set; }
+
+ public double MapOffsetX { get; set; }
+ public double MapOffsetY { get; set; }
+
+ public Point RefPoint { get; set; }
+
+ public Point GetMapPoint(double x, double y)
+ {
+ x += this.MapOffsetX;
+ y += this.MapOffsetY;
+ return new Point(x, y);
+ }
+
+ public Point GetMapPoint(Point point)
+ {
+
+ return this.GetMapPoint(point.X, point.Y);
+ }
+
+ public Point GetMapFromRefPoint(Point point)
+ {
+
+ return this.GetMapFromRefPoint(point.X, point.Y);
+ }
+
+ public Point GetMapFromRefPoint(double x, double y)
+ {
+ x += this.RefPoint.X;
+ x += this.MapOffsetX;
+ y += this.RefPoint.Y;
+ y += this.MapOffsetY;
+ return new Point(x, y);
+ }
+ }
+}
diff --git a/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml b/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml
index 3dec5811..def4011f 100644
--- a/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml
+++ b/CampusAppWP8/CampusAppWP8/Pages/Campusmap/CampusMapPage.xaml
@@ -39,23 +39,25 @@
-
+
-
-