From d39f5e09842f9ad6337933f53a8566072b4d790b Mon Sep 17 00:00:00 2001 From: Francis Jervis Date: Mon, 18 Dec 2017 14:09:38 -0800 Subject: [PATCH 1/2] Update Annotation.swift --- MapboxARKit/Annotation.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MapboxARKit/Annotation.swift b/MapboxARKit/Annotation.swift index ae02faf..7fdb2b8 100644 --- a/MapboxARKit/Annotation.swift +++ b/MapboxARKit/Annotation.swift @@ -5,10 +5,11 @@ public class Annotation: NSObject { public var location: CLLocation public var calloutImage: UIImage? public var anchor: MBARAnchor? - - public init(location: CLLocation, calloutImage: UIImage?) { + public var identifier: String + public init(location: CLLocation, calloutImage: UIImage?, identifier: String) { self.location = location self.calloutImage = calloutImage + self.identifier = identifier } } From a266f33b1a39bc66e1d72838a72ece4ebd28dcda Mon Sep 17 00:00:00 2001 From: Francis Jervis Date: Mon, 18 Dec 2017 14:11:54 -0800 Subject: [PATCH 2/2] Update AnnotationManager.swift --- MapboxARKit/AnnotationManager.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/MapboxARKit/AnnotationManager.swift b/MapboxARKit/AnnotationManager.swift index 93e2a5b..264213e 100644 --- a/MapboxARKit/AnnotationManager.swift +++ b/MapboxARKit/AnnotationManager.swift @@ -102,6 +102,7 @@ extension AnnotationManager: ARSCNViewDelegate { if let calloutImage = annotation.calloutImage { let calloutNode = createCalloutNode(with: calloutImage, node: newNode) + calloutNode.name = annotation.identifier newNode.addChildNode(calloutNode) }