DingiTilePyramidOfflineRegion
@interface DingiTilePyramidOfflineRegion
: NSObject <DingiOfflineRegion, NSSecureCoding, NSCopying>
An offline region defined by a style URL, geographic coordinate bounds, and range of zoom levels.
To minimize the resources required by an irregularly shaped offline region, use the DingiShapeOfflineRegion class instead.
-
The coordinate bounds for the geographic region covered by the downloaded tiles.
Declaration
Objective-C
@property (readonly, nonatomic) DingiCoordinateBounds bounds;
Swift
var bounds: DingiCoordinateBounds { get }
-
The minimum zoom level for which to download tiles and other resources.
For more information about zoom levels,
-[DingiMapView zoomLevel]
.Declaration
Objective-C
@property (readonly, nonatomic) double minimumZoomLevel;
Swift
var minimumZoomLevel: Double { get }
-
The maximum zoom level for which to download tiles and other resources.
For more information about zoom levels,
-[DingiMapView zoomLevel]
.Declaration
Objective-C
@property (readonly, nonatomic) double maximumZoomLevel;
Swift
var maximumZoomLevel: Double { get }
-
Initializes a newly created offline region with the given style URL, geographic coordinate bounds, and range of zoom levels.
This is the designated initializer for
DingiTilePyramidOfflineRegion
.Declaration
Objective-C
- (nonnull instancetype)initWithStyleURL:(nullable NSURL *)styleURL bounds:(DingiCoordinateBounds)bounds fromZoomLevel:(double)minimumZoomLevel toZoomLevel:(double)maximumZoomLevel;
Swift
init(styleURL: URL?, bounds: DingiCoordinateBounds, fromZoomLevel minimumZoomLevel: Double, toZoomLevel maximumZoomLevel: Double)
Parameters
styleURL
URL of the map style for which to download resources. The URL may be a full HTTP or HTTPS URL
bounds
The coordinate bounds for the geographic region to be covered by the downloaded tiles.
minimumZoomLevel
The minimum zoom level to be covered by the downloaded tiles. This parameter should be set to at least 0 but no greater than the value of the
maximumZoomLevel
parameter. For each required tile source, if this parameter is set to a value less than the tile source’s minimum zoom level, the download covers zoom levels down to the tile source’s minimum zoom level.maximumZoomLevel
The maximum zoom level to be covered by the downloaded tiles. This parameter should be set to at least the value of the
minimumZoomLevel
parameter. For each required tile source, if this parameter is set to a value greater than the tile source’s minimum zoom level, the download covers zoom levels up to the tile source’s maximum zoom level.