Shared MGLMapCamera between iOS and OS X. Unfortunately -camera and -setCamera: implementations need to be copy-pasted for now.
26 lines
957 B
Objective-C
26 lines
957 B
Objective-C
#import <mbgl/osx/MGLMapView.h>
|
|
|
|
void mgl_linkMapViewIBCategory();
|
|
|
|
@interface MGLMapView (Private)
|
|
|
|
/// True if the view or application is in a state where it is not expected to be
|
|
/// actively drawing.
|
|
@property (nonatomic, readonly, getter=isDormant) BOOL dormant;
|
|
|
|
// These properties exist because initially, both the latitude and longitude are
|
|
// NaN. You have to set both the latitude and longitude simultaneously. If you
|
|
// set the latitude but reuse the current longitude, and the current longitude
|
|
// happens to be NaN, there will be no change because the resulting coordinate
|
|
// pair is invalid.
|
|
|
|
/// Center latitude set independently of the center longitude in an inspectable.
|
|
@property (nonatomic) CLLocationDegrees pendingLatitude;
|
|
/// Center longitude set independently of the center latitude in an inspectable.
|
|
@property (nonatomic) CLLocationDegrees pendingLongitude;
|
|
|
|
/// Synchronously render a frame of the map.
|
|
- (void)renderSync;
|
|
|
|
@end
|