Files
MapLibreParticleLab/include/mbgl/ios/MGLMapView+MGLCustomStyleLayerAdditions.h
Minh Nguyễn bf89ed080b [ios] Renamed custom style layer invalidation method
Cf. -[UIView setNeedsDisplay] and -[MKOverlayRenderer setNeedsDisplay].
2015-12-16 16:15:28 -08:00

28 lines
1.1 KiB
Objective-C

#import "MGLMapView.h"
NS_ASSUME_NONNULL_BEGIN
/// -
typedef void (^MGLCustomStyleLayerPreparationHandler)(void);
/// -
typedef void (^MGLCustomStyleLayerDrawingHandler)(CGSize size,
CLLocationCoordinate2D centerCoordinate,
double zoomLevel,
CLLocationDirection direction,
CGFloat pitch,
CGFloat perspectiveSkew);
/// -
typedef void (^MGLCustomStyleLayerCompletionHandler)(void);
@interface MGLMapView (MGLCustomStyleLayerAdditions)
- (void)insertCustomStyleLayerWithIdentifier:(NSString *)identifier preparationHandler:(MGLCustomStyleLayerPreparationHandler)preparation drawingHandler:(MGLCustomStyleLayerDrawingHandler)drawing completionHandler:(MGLCustomStyleLayerCompletionHandler)completion belowStyleLayerWithIdentifier:(nullable NSString *)otherIdentifier;
- (void)setCustomStyleLayersNeedDisplay;
@end
NS_ASSUME_NONNULL_END