MaplyAerisTileSet

@interface MaplyAerisTileSet : NSObject

A MaplyAerisTileSet object provides tile sources for display in WhirlyGlobe-Maply.

The MaplyAerisTileSet object provides access to weather imagery from Aeris. Instantiate this object with the desired layer and number of frames. Then, initiate a fetch of the most recent frames. MaplyAerisTileSet will provide an array of tile sources that can be combined using a MaplyMultiplexTileSource to feed a MaplyQuadImageTilesLayer, which will display the imagery on the map or globe.

See

MaplyTileSource

See

MaplyMultiplexTileSource

See

MaplyQuadImageTilesLayer
  • Initialize a MaplyAerisTileSet object.

    Initialize a MaplyAerisTileSet object with the necessary parameters.

    Declaration

    Objective-C

    - (nullable instancetype)initWithAerisID:(NSString *_Nonnull)aerisID
                                   secretKey:(NSString *_Nonnull)secretKey
                                   layerInfo:
                                       (MaplyAerisLayerInfo *_Nonnull)layerInfo
                                tileSetCount:(unsigned int)tileSetCount;

    Swift

    init?(aerisID: String, secretKey: String, layerInfo: MaplyAerisLayerInfo, tileSetCount: UInt32)

    Parameters

    aerisID

    The ID for the Aeris account.

    secretKey

    The secret key for the Aeris account.

    layerInfo

    The MaplyAerisLayerInfo object describing the weather layer of interest. Retrieve this from a MaplyAerisTiles object.

    tileSetCount

    The number of frames of interest.

  • Start the fetch of the most recent imagery frames.

    The startFetchWithSucess:failure: method takes blocks as arguments, because fetching the most recent frame information from Aeris is asynchronous. In the success block, put your custom code which adds the tile sources to a MaplyQuadImageTilesLayer.

    Declaration

    Objective-C

    - (void)startFetchWithSuccess:(nonnull void (^)(NSArray *_Nullable))successBlock
                          failure:
                              (nullable void (^)(NSError *_Nonnull))failureBlock;

    Swift

    func startFetch(success successBlock: @escaping ([Any]?) -> Void, failure failureBlock: ((Error) -> Void)? = nil)

    Parameters

    successBlock

    In this block, write your custom code for adding the Aeris imagery tile sources to a MaplyQuadImageTilesLayer.

    failureBlock

    Handle a fetch error in this block.