MaplyTileFetchRequest
Objective-C
@interface MaplyTileFetchRequest : NSObject
Swift
class MaplyTileFetchRequest : NSObject
Generic Tile fetcher request.
A single request for a single tile of data from a single source. The tile fetcher will… fetch this and call the success or failure callback.
-
Priority before importance. Less is more important.
Declaration
Objective-C
@property (nonatomic) int priority;
Swift
var priority: Int32 { get set }
-
How important this is to us. Probably screen space.
Declaration
Objective-C
@property (nonatomic) float importance;
Swift
var importance: Float { get set }
-
If all other values are equal, sort by this. It keeps requests we’re waiting for grouped together
Declaration
Objective-C
@property (nonatomic) int group;
Swift
var group: Int32 { get set }
-
Tile ID for this tile
Declaration
Objective-C
@property (nonatomic) MaplyTileID tileID;
Swift
var tileID: MaplyTileID { get set }
-
An object representing the tile source. Used for sorting. Not accessed by the fetcher.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id tileSource;
Swift
weak var tileSource: AnyObject? { get set }
-
This is requested from a TileInfo object by a loader and then passed along to the TileFetcher. TileFetchers expect certain objects. The RemoteTileFetcher wants a RemoteFetchInfo object and will check. Other fetchers will want other things.
Declaration
Objective-C
@property (nonatomic, strong, nonnull) id fetchInfo;
Swift
var fetchInfo: Any { get set }
-
Tile Fetcher success callback.
Called on a new dispatch queue and won’t be marked as loaded until it returns. This is a good way to limit how many things are loading/parsing at the same time.
Declaration
Objective-C
@property (nonatomic, nullable) void (^) (MaplyTileFetchRequest *_Nonnull, id _Nonnull) success;
Swift
var success: ((MaplyTileFetchRequest, Any) -> Void)? { get set }
-
Tile Fetcher failure callback.
Declaration
Objective-C
@property (nonatomic, nullable) void (^) (MaplyTileFetchRequest *_Nonnull, NSError *_Nonnull) failure;
Swift
var failure: ((MaplyTileFetchRequest, Error) -> Void)? { get set }