diff --git a/Musgravite.xcworkspace/xcuserdata/Luna.xcuserdatad/UserInterfaceState.xcuserstate b/Musgravite.xcworkspace/xcuserdata/Luna.xcuserdatad/UserInterfaceState.xcuserstate
index 353dab8..381f512 100644
Binary files a/Musgravite.xcworkspace/xcuserdata/Luna.xcuserdatad/UserInterfaceState.xcuserstate and b/Musgravite.xcworkspace/xcuserdata/Luna.xcuserdatad/UserInterfaceState.xcuserstate differ
diff --git a/Musgravite.xcworkspace/xcuserdata/Luna.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/Musgravite.xcworkspace/xcuserdata/Luna.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
index 13fffeb..e855642 100644
--- a/Musgravite.xcworkspace/xcuserdata/Luna.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
+++ b/Musgravite.xcworkspace/xcuserdata/Luna.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
@@ -10,7 +10,7 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Musgravite/Controller/DetailViewController.swift"
- timestampString = "564862025.403434"
+ timestampString = "564864561.821962"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "195"
@@ -42,7 +42,7 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Musgravite/Controller/DetailViewController.swift"
- timestampString = "564862025.403586"
+ timestampString = "564864561.822165"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "196"
diff --git a/WMusgravite Extension/Controller/DetailInterfaceController.swift b/WMusgravite Extension/Controller/DetailInterfaceController.swift
index e1216f2..b09e5c7 100644
--- a/WMusgravite Extension/Controller/DetailInterfaceController.swift
+++ b/WMusgravite Extension/Controller/DetailInterfaceController.swift
@@ -9,6 +9,7 @@
import WatchKit
import Foundation
+
public extension WKInterfaceImage {
public func setImageWithUrl(url:String, scale: CGFloat = 1.0) -> WKInterfaceImage? {
@@ -35,6 +36,9 @@ class DetailInterfaceController: WKInterfaceController {
@IBOutlet weak var bigImageOutlet: WKInterfaceImage!
@IBOutlet weak var labLocationOutlet: WKInterfaceLabel!
@IBOutlet weak var floorLocationOutlet: WKInterfaceLabel!
+ @IBOutlet weak var mapOutlet: WKInterfaceMap!
+ let locationManager = CLLocationManager()
+
override func awake(withContext context: Any?) {
if let receivedLab = context as? LabData {
@@ -46,7 +50,11 @@ class DetailInterfaceController: WKInterfaceController {
bigtitleOutlet.setText(lab.nombre)
labLocationOutlet.setText(lab.ubicacion)
floorLocationOutlet.setText("Piso \(lab.piso)")
- bigImageOutlet.setImageWithUrl(url: lab.posterImage)
+ /* Map */
+ let tec=CLLocationCoordinate2D(latitude: 19.283996, longitude: -99.136006)
+ let region=MKCoordinateRegion(center:tec, span: MKCoordinateSpan(latitudeDelta: 0.005, longitudeDelta: 0.005))
+ mapOutlet.setRegion(region)
+ mapOutlet.addAnnotation(tec, with: .purple)
}
@IBAction func onMenuBackTap() {
diff --git a/WMusgravite/Base.lproj/Interface.storyboard b/WMusgravite/Base.lproj/Interface.storyboard
index a06adb7..bcb7cd8 100644
--- a/WMusgravite/Base.lproj/Interface.storyboard
+++ b/WMusgravite/Base.lproj/Interface.storyboard
@@ -154,6 +154,7 @@
+