diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-12-16 14:14:44 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-16 15:48:55 -0800 |
commit | 350cafb9036e4639e3417b15b17a54582017302f (patch) | |
tree | 649a77504985ad3806e6e7bb849b5e579539837f /include | |
parent | 13d5b18ebaeb330f05c4abfc04e0247222e038ba (diff) | |
download | qtlocation-mapboxgl-350cafb9036e4639e3417b15b17a54582017302f.tar.gz |
Revert "Revert "[ios] Custom style layer""
This reverts commit 081e4e44516937a6139fad5823dd5ec3200cc343.
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/ios/MGLMapView+MGLCustomStyleLayerAdditions.h | 22 | ||||
-rw-r--r-- | include/mbgl/ios/Mapbox.h | 1 |
2 files changed, 23 insertions, 0 deletions
diff --git a/include/mbgl/ios/MGLMapView+MGLCustomStyleLayerAdditions.h b/include/mbgl/ios/MGLMapView+MGLCustomStyleLayerAdditions.h new file mode 100644 index 0000000000..4785a36cfa --- /dev/null +++ b/include/mbgl/ios/MGLMapView+MGLCustomStyleLayerAdditions.h @@ -0,0 +1,22 @@ +#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; + +@end + +NS_ASSUME_NONNULL_END diff --git a/include/mbgl/ios/Mapbox.h b/include/mbgl/ios/Mapbox.h index 004839059f..e8b3ead1d9 100644 --- a/include/mbgl/ios/Mapbox.h +++ b/include/mbgl/ios/Mapbox.h @@ -5,6 +5,7 @@ #import "MGLGeometry.h" #import "MGLMapView.h" #import "MGLMapView+IBAdditions.h" +#import "MGLMapView+MGLCustomStyleLayerAdditions.h" #import "MGLMultiPoint.h" #import "MGLOverlay.h" #import "MGLPointAnnotation.h" |