MaplyTileInfoNew
Objective-C
@protocol MaplyTileInfoNew <NSObject>
Swift
protocol MaplyTileInfoNew : NSObjectProtocol
Tile Info Protocol.
This describes a single source of data tiles. A uses these to figure out what to load when and where. The loader passes the result of fetchInfoForTile to a MaplyTileFetcher to get the data it wants.
-
The minimum zoom level available.
This is the lowest level we’ll try to fetch. Any levels below that will be filled in with placeholders. Those are empty, but they allow us to load tiles beneath.
Declaration
Objective-C
- (int)minZoom;
Swift
func minZoom() -> Int32
-
The maximum zoom level available.
This is the highest level (e.g. largest) that we’ll fetch for a given pyramid tile source. The source can sparse, so you are not required to have these tiles available, but this is as high as the loader will fetch.
Declaration
Objective-C
- (int)maxZoom;
Swift
func maxZoom() -> Int32
-
FetchInfo object for a given tile.
The FetchInfo object is specific to the type of TileFetcher you’re using and tells the fetcher how to get the data you wawnt. RemoteTileFetchers want a RemoteTileInfoNew object.
Declaration
Objective-C
- (id _Nullable)fetchInfoForTile:(MaplyTileID)tileID flipY:(_Bool)flipY;
Swift
func fetchInfo(forTile tileID: MaplyTileID, flipY: Bool) -> Any?