MGLOfflineRegion

@protocol MGLOfflineRegion <NSObject>

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

styleURL

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 MapTiler style URL (https://api.maptiler.com/maps/{style}/style.json).

Declaration

Objective-C

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

Swift

var styleURL: URL { get }

includesIdeographicGlyphs

Specifies whether to include ideographic glyphs in downloaded font data. Ideographic glyphs make up the majority of downloaded font data, but it is possible to configure the renderer to use locally installed fonts instead of relying on fonts downloaded as part of the offline pack. See MGLIdeographicFontFamilyName setting. Also, for regions outside of China, Japan, and Korea, these glyphs will rarely appear for non-CJK users.

By default, this property is set to NO, so that the offline pack will include ideographic glyphs.

Declaration

Objective-C

@property (nonatomic, assign, unsafe_unretained, readwrite)
BOOL includesIdeographicGlyphs;

Swift

var includesIdeographicGlyphs: Bool { get set }
iOS SDK

SDK JS Reference

On this page