summaryrefslogtreecommitdiff
path: root/platform/ios/include/MGLMapView+MGLCustomStyleLayerAdditions.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/include/MGLMapView+MGLCustomStyleLayerAdditions.h')
-rw-r--r--platform/ios/include/MGLMapView+MGLCustomStyleLayerAdditions.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/platform/ios/include/MGLMapView+MGLCustomStyleLayerAdditions.h b/platform/ios/include/MGLMapView+MGLCustomStyleLayerAdditions.h
new file mode 100644
index 0000000000..de4dc01f99
--- /dev/null
+++ b/platform/ios/include/MGLMapView+MGLCustomStyleLayerAdditions.h
@@ -0,0 +1,26 @@
+#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)removeCustomStyleLayerWithIdentifier:(NSString *)identifier;
+
+- (void)setCustomStyleLayersNeedDisplay;
+
+@end
+
+NS_ASSUME_NONNULL_END