MBMStyleImageMissing


@interface MBMStyleImageMissing : NSObject

A style needs an image that is missing from the sprite sheet. This event is emitted when the map renders visible tiles, and one of the required images is missing in the sprite sheet. The event observer has to provide the missing image by calling the addStyleImage method.

Note: Images added as a result of the StyleImageMissing event will be treated as user-added images, and when the engine no longer needs a user-provided image, the map will emit StyleImageRemoveUnused event.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)init NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)new NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithImageId:(nonnull NSString *)imageId
                                  timestamp:(nonnull NSDate *)timestamp;

    Swift

    init(imageId: String, timestamp: Date)
  • The identifier of a missing image.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) NSString *imageId;

    Swift

    var imageId: String { get }
  • The timestamp of an event when the map requested a missing image.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSDate *timestamp;

    Swift

    var timestamp: Date { get }