[ios, android] Add a method to invalidate custom layers, forcing a repaint

This commit is contained in:
John Firebaugh
2015-12-16 11:13:59 -08:00
parent 2b782308e5
commit 2ee52915fe
3 changed files with 12 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ typedef void (^MGLCustomStyleLayerCompletionHandler)(void);
- (void)insertCustomStyleLayerWithIdentifier:(NSString *)identifier preparationHandler:(MGLCustomStyleLayerPreparationHandler)preparation drawingHandler:(MGLCustomStyleLayerDrawingHandler)drawing completionHandler:(MGLCustomStyleLayerCompletionHandler)completion belowStyleLayerWithIdentifier:(nullable NSString *)otherIdentifier;
- (void)invalidateCustomStyleLayers;
@end
NS_ASSUME_NONNULL_END