MaplyUpdateLayer
@interface MaplyUpdateLayer : MaplyViewControllerLayer
This layer will call a delegate as the user moves around, but constrained to distance and time.
This layer is responsible for calling a delegate you provide as the user moves their viewpoint around. You’ll be called if they move from than a certain amount, but not more often than the minimum time.
-
The minimum distance that will trigger a delegate call. Distance is in display units (radius of the earth = 1.0).
Declaration
Objective-C
@property (readonly, nonatomic) double moveDist;
Swift
var moveDist: Double { get }
-
The delegate will be called no more often than this amount (in seconds).
Declaration
Objective-C
@property (readonly, nonatomic) double minTime;
Swift
var minTime: Double { get }
-
Initalize the update layer with a delegate and parameters.
Declaration
Objective-C
- (nonnull instancetype)initWithDelegate: (NSObject<MaplyUpdateDelegate> *_Nullable)delegate moveDist:(double)moveDist minTime:(double)minTime;
Swift
init(delegate: (NSObjectProtocol
Parameters
delegate
The delegate that will be called every time the user moves, subject to the values.
moveDist
The minimum distance that will trigger a delegate call. Distance is in display units (radius of the earth = 1.0).
minTime
The delegate will be called no more often than this amount (in seconds).