#import #import #import "MGLFoundation.h" #import "MGLStyleValue.h" #import "MGLStyleLayer.h" NS_ASSUME_NONNULL_BEGIN @class MGLMapView; @class MGLStyle; typedef struct MGLStyleLayerDrawingContext { CGSize size; CLLocationCoordinate2D centerCoordinate; double zoomLevel; CLLocationDirection direction; CGFloat pitch; CGFloat fieldOfView; } MGLStyleLayerDrawingContext; MGL_EXPORT @interface MGLOpenGLStyleLayer : MGLStyleLayer @property (nonatomic, weak, readonly) MGLStyle *style; - (instancetype)initWithIdentifier:(NSString *)identifier; - (void)didMoveToMapView:(MGLMapView *)mapView; - (void)willMoveFromMapView:(MGLMapView *)mapView; - (void)drawInMapView:(MGLMapView *)mapView withContext:(MGLStyleLayerDrawingContext)context; - (void)setNeedsDisplay; @end NS_ASSUME_NONNULL_END