diff --git a/include/mbgl/ios/MGLMapView+MGLCustomStyleLayerAdditions.h b/include/mbgl/ios/MGLMapView+MGLCustomStyleLayerAdditions.h index 3c74b0296..2fe7ea6be 100644 --- a/include/mbgl/ios/MGLMapView+MGLCustomStyleLayerAdditions.h +++ b/include/mbgl/ios/MGLMapView+MGLCustomStyleLayerAdditions.h @@ -20,7 +20,7 @@ typedef void (^MGLCustomStyleLayerCompletionHandler)(void); - (void)insertCustomStyleLayerWithIdentifier:(NSString *)identifier preparationHandler:(MGLCustomStyleLayerPreparationHandler)preparation drawingHandler:(MGLCustomStyleLayerDrawingHandler)drawing completionHandler:(MGLCustomStyleLayerCompletionHandler)completion belowStyleLayerWithIdentifier:(nullable NSString *)otherIdentifier; -- (void)invalidateCustomStyleLayers; +- (void)setCustomStyleLayersNeedDisplay; @end diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index ab18c1b4c..63bd41e7d 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -3675,7 +3675,7 @@ void MGLFinishCustomStyleLayer(void *context) context, otherIdentifier.UTF8String); } -- (void)invalidateCustomStyleLayers +- (void)setCustomStyleLayersNeedDisplay { _mbglMap->update(mbgl::Update::Repaint); }