summaryrefslogtreecommitdiff
path: root/platform/macos/src/MGLMapView_Private.h
blob: 5ac75768a1d32cc31b2e8c78441f2300c6be3a6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#import "MGLMapView.h"

namespace mbgl {
    class Map;
}

@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;

/// Asynchronously render a frame of the map.
- (void)setNeedsGLDisplay;

/// Synchronously render a frame of the map.
- (void)renderSync;

- (mbgl::Map *)mbglMap;

@end