Add documenation to did fail to load image (#1365)

This commit is contained in:
Florian Herzog
2023-07-13 15:14:22 +02:00
committed by GitHub
parent 14cc0297b9
commit 1df69db20b
2 changed files with 12 additions and 0 deletions

View File

@@ -276,6 +276,12 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)mapView:(MLNMapView *)mapView didFinishLoadingStyle:(MLNStyle *)style;
/**
Tells the delegate that the `mapView` is missing an image. The image should be added synchronously with `-[MLNStyle setImage:forName:]` to be rendered on the current zoom level. When loading icons asynchronously, you can load a placeholder image and replace it when your image has loaded.
@param mapView The map view that is loading the image.
@param imageName The name of the image that is missing.
*/
- (nullable UIImage *)mapView:(MLNMapView *)mapView didFailToLoadImage:(NSString *)imageName;
/**

View File

@@ -181,6 +181,12 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)mapView:(MLNMapView *)mapView didFinishLoadingStyle:(MLNStyle *)style;
/**
Tells the delegate that the `mapView` is missing an image. The image should be added synchronously with `-[MLNStyle setImage:forName:]` to be rendered on the current zoom level. When loading icons asynchronously, you can load a placeholder image and replace it when your image has loaded.
@param mapView The map view that is loading the image.
@param imageName The name of the image that is missing.
*/
- (nullable NSImage *)mapView:(MLNMapView *)mapView didFailToLoadImage:(NSString *)imageName;
/**