MMKPanoramaTileImageFactory

@protocol MMKPanoramaTileImageFactory <NSObject>

Undocumented

Summary

Instance methods

- (nullable UIImage *)loadWithPanoramaId:(nonnull NSString *)panoramaId
                                       x:(NSUInteger)x
                                       y:(NSUInteger)y
                               tileLevel:(NSUInteger)tileLevel;

Called once the tile is within the view frustum

Instance methods

loadWithPanoramaId:x:y:tileLevel:

- (nullable UIImage *)loadWithPanoramaId:(nonnull NSString *)panoramaId
                                       x:(NSUInteger)x
                                       y:(NSUInteger)y
                               tileLevel:(NSUInteger)tileLevel;

Called once the tile is within the view frustum. If tile can't be loaded, empty value must be returned.

This method will be called on a background thread.

Parameters

panoramaId

The id of the panorama to get tile for.

x

Tile x coordinate in range [0..tileLevels[tileLevel].width/tileSize.width] x=0,y=0 is the left top corner

y

Tile y coordinate in range [0..ceil(tileLevels[tileLevel].height/tileSize.height)]

tileLevel

Tile level coordinate. One of the given tilelevels level]