MaplySelectedObject
@interface MaplySelectedObject : NSObject
When selecting multiple objects, one or more of these is returned.
When you implement one of the selection delegates that takes multiple objects, you’ll get an NSArray of these things.
-
Object the user selected This is the original object the user passed in when adding it to the globe or map.
Declaration
Objective-C
@property (readwrite, nonatomic) id _Nullable selectedObj;
Swift
weak var selectedObj: AnyObject? { get set }
-
Distance from where the user tapped to the closest part of the object on the screen
Declaration
Objective-C
@property (assign, readwrite, atomic) double screenDist;
Swift
var screenDist: Double { get set }
-
Distance from the user’s viewpoint to the center of the object in 3-space. Use this for sorting.
Declaration
Objective-C
@property (assign, readwrite, atomic) double zDist;
Swift
var zDist: Double { get set }
-
Set if this was part of a cluster
Declaration
Objective-C
@property (assign, readwrite, atomic) _Bool cluster;
Swift
var cluster: Bool { get set }