MGLOfflineRegion

@protocol MGLOfflineRegion <NSObject>

An object conforming to the MGLOfflineRegion protocol determines which resources are required by an MGLOfflinePack object.

  • URL of the style whose resources are required for offline viewing.

    In addition to the JSON stylesheet, different styles may require different font glyphs, sprite sheets, and other resources.

    The URL may be a full HTTP or HTTPS URL or a Mapbox URL indicating the style’s map ID (mapbox://styles/{user}/{style}).

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSURL *_Nonnull styleURL;

    Swift

    var styleURL: URL { get }