MaplyTileFetcher
Objective-C
@protocol MaplyTileFetcher <NSObject>
Swift
protocol MaplyTileFetcher : NSObjectProtocol
Tile Fetcher protocol.
The tile fetcher interacts with loaders that want tiles, as demanded by samplers. A given data source (e.g. remote URL, MBTiles) needs one of these to fetch and return data.
-
Add a whole group of requests at once. This is useful if we want to avoid low priority tiles grabbing the slots first
Declaration
Objective-C
- (void)startTileFetches:(NSArray<MaplyTileFetchRequest *> *_Nonnull)requests;
Swift
func startTileFetches(_ requests: [MaplyTileFetchRequest])
-
Update an active request with a new priority and importance
Declaration
Objective-C
- (id _Nullable)updateTileFetch:(id _Nonnull)fetchID priority:(int)priority importance:(double)importance;
Swift
func updateTileFetch(_ fetchID: Any, priority: Int32, importance: Double) -> Any?
-
Name of this tile fetcher. Used for coordinating tile sources.
Declaration
Objective-C
- (NSString *_Nonnull)name;
Swift
func name() -> String
-
Cancel a group of requests at once Use the object returned by the startTileFetch call (which is just a Request object)
Declaration
Objective-C
- (void)cancelTileFetches:(NSArray *_Nonnull)requestRets;
Swift
func cancelTileFetches(_ requestRets: [Any])
-
Kill all outstanding connections and clean up
Declaration
Objective-C
- (void)shutdown;
Swift
func shutdown()