[ios] Renamed custom style layer invalidation method

Cf. -[UIView setNeedsDisplay] and -[MKOverlayRenderer setNeedsDisplay].
This commit is contained in:
Minh Nguyễn
2015-12-16 12:36:06 -08:00
committed by John Firebaugh
parent 2ee52915fe
commit bf89ed080b
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -3675,7 +3675,7 @@ void MGLFinishCustomStyleLayer(void *context)
context, otherIdentifier.UTF8String);
}
- (void)invalidateCustomStyleLayers
- (void)setCustomStyleLayersNeedDisplay
{
_mbglMap->update(mbgl::Update::Repaint);
}