MaplyQuadPagingLoader

Objective-C

@interface MaplyQuadPagingLoader : MaplyQuadLoaderBase

Swift

class MaplyQuadPagingLoader : MaplyQuadLoaderBase

General purpose quad paging loader.

This quadtree based paging loader is for fetching and load general geometry.
There are other loaders that handle images and image animations.  This one is
purely for geometry.

You need to fill in at least a MaplyLoaderInterpreter, which is probably your own
implementation.

This replaces the QuadPagingLayer from WhirlyGlobe-Maply 2.x.
  • Initialize with a single tile info object, the interpreter and the sampling parameters.

    Declaration

    Objective-C

    - (nullable instancetype)
        initWithParams:(MaplySamplingParams *_Nonnull)params
              tileInfo:(NSObject<MaplyTileInfoNew> *_Nullable)tileInfo
            loadInterp:(NSObject<MaplyLoaderInterpreter> *_Nullable)loadInterp
                 viewC:(MaplyBaseViewController *_Nonnull)viewC;

    Swift

    init?(params: MaplySamplingParams, tileInfo: MaplyTileInfoNew?, loadInterp: MaplyLoaderInterpreter?, viewC: MaplyBaseViewController)

    Parameters

    params

    The sampling parameters describing how to break down the data for projection onto a globe or map.

    tileInfo

    A optional tile info object describing where the data is and how to get it.

    loadInterp

    The interpreter makes geometry from the input data. Or just makes it up if there is no input.

    viewC

    the View controller (or renderer) to add objects to.

  • Force a reload of the data.
    All the current loads will be cancelled, any in flight will be ignored and the loader will ask for a whole new set of data.

    Declaration

    Objective-C

    - (void)reload;

    Swift

    func reload()
  • Undocumented

    Declaration

    Objective-C

    - (void)reloadArea:(MaplyBoundingBox)bound;

    Swift

    func reloadArea(_ bound: MaplyBoundingBox)
  • Undocumented

    Declaration

    Objective-C

    - (void)reloadAreas:(NSArray<NSValue *> *_Nullable)bounds;

    Swift

    func reloadAreas(_ bounds: [NSValue]?)