MapKit Mobile SDK

MMKPanoramaTileImageFactory

protocol MMKPanoramaTileImageFactory : NSObjectProtocol

Undocumented

Summary

Instance methods

func load(withPanoramaId panoramaId: String,
                                  x: UInt,
                                  y: UInt,
                          tileLevel: UInt) -> UIImage?
Called once the tile is within the view frustum

Instance methods

load(withPanoramaId:x:y:tileLevel:)

func load(withPanoramaId panoramaId: String,
                                  x: UInt,
                                  y: UInt,
                          tileLevel: UInt) -> UIImage?

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]