MaplyQuadImageLoader
Objective-C
@interface MaplyQuadImageLoader : MaplyQuadImageLoaderBase
Swift
class MaplyQuadImageLoader : MaplyQuadImageLoaderBase
The Maply Quad Image Loader is for paging image pyramids local or remote.
This layer pages image pyramids. They can be local or remote, in any coordinate system Maply supports and you provide a MaplyTileInfoNew conformant object to do the actual image tile fetching.
You probably don’t have to implement your own tile source. Go look at the MaplyRemoteTileFetcher and MaplyMBTileFetcher objects. Those will do remote and local fetching.
-
Initialize with a single tile info object and the sampling parameters.
Declaration
Objective-C
- (nullable instancetype) initWithParams:(MaplySamplingParams *_Nonnull)params tileInfo:(NSObject<MaplyTileInfoNew> *_Nullable)tileInfo viewC:(NSObject<MaplyRenderControllerProtocol> *_Nonnull)viewC;
Swift
init?(params: MaplySamplingParams, tileInfo: MaplyTileInfoNew?, viewC: NSObjectProtocol & MaplyRenderControllerProtocol)
Parameters
params
The sampling parameters describing how to break down the data for projection onto a globe or map.
tileInfo
A single tile info object describing where the data is and how to get it.
viewC
the View controller (or renderer) to add objects to.
-
Initialize with multiple tile sources and sampling parameters.
Declaration
Objective-C
- (nullable instancetype) initWithParams:(MaplySamplingParams *_Nonnull)params tileInfos:(NSArray<NSObject<MaplyTileInfoNew> *> *_Nonnull)tileInfos viewC:(NSObject<MaplyRenderControllerProtocol> *_Nonnull)viewC;
Swift
init?(params: MaplySamplingParams, tileInfos: [MaplyTileInfoNew], viewC: NSObjectProtocol & MaplyRenderControllerProtocol)
Parameters
params
The sampling parameters describing how to break down the data for projection onto a globe or map.
tileInfos
A list of tile info objects to fetch for each tile. If one fails, the tile fails to load.
viewC
the View controller (or renderer) to add objects to.
-
Change the tile source and reload all the data.
You can change the tile source data is being loaded from. This will force a reload and everything visual should change as the data comes in.Declaration
Objective-C
- (void)changeTileInfo:(NSObject<MaplyTileInfoNew> *_Nonnull)tileInfo;
Swift
func changeTileInfo(_ tileInfo: MaplyTileInfoNew)