METileFactory Class Reference

Inherits from METileProvider : NSObject
Declared in METileFactory.h

Overview

Serves as a tile provider that manages TileWorker objects. This demonstrates a farming out work on a per-tile basis and only doing the work that is necessary to serve up data that is in view.

  mapName

The map name this factory is providing tiles for.

@property (retain) NSString *mapName

Declared In

METileFactory.h

  mapViewName

The name of the map view.

@property (retain) NSString *mapViewName

Declared In

METileFactory.h

  activeTileRequests

Current outstanding tile request count.

@property (retain) NSMutableArray *activeTileRequests

Declared In

METileFactory.h

  tileWorkers

Array of METileWorker objects.

@property (retain) NSMutableArray *tileWorkers

Declared In

METileFactory.h

  diskCacheFile

The full path of a file to use as a cache for downloaded tiles. The file will be created if it does not exist. The file will be a sqlite file that that conforms to the Altus Map Package schema.

@property (retain) NSString *diskCacheFile

Declared In

METileFactory.h

  packageCache

Instance Altus Map Package cache object downloaded tiles will be written to.

@property (retain) MEPackage *packageCache

Declared In

METileFactory.h

  foundInPackageCount

The number of cache hits.

@property (assign) unsigned long foundInPackageCount

Declared In

METileFactory.h

  notFoundInPackageCount

The number or cache misses.

@property (assign) unsigned long notFoundInPackageCount

Declared In

METileFactory.h

  notNeededCount

The number of tiles that were downloaded, but then no needed because the map location was changed.

@property (assign) unsigned long notNeededCount

Declared In

METileFactory.h

  writtenToPackageCount

The number of tiles written to the package.

@property (readonly) unsigned long writtenToPackageCount

Declared In

METileFactory.h

  writtenToPackageRetryCount

The number of times a package write had to be retried because another thread had the database locked.

@property (readonly) unsigned long writtenToPackageRetryCount

Declared In

METileFactory.h

  writtenToPackageFailureCount

The number of times a package write completely failed.

@property (readonly) unsigned long writtenToPackageFailureCount

Declared In

METileFactory.h

  verbose

Whether or not to display verbose messages.

@property (assign) BOOL verbose

Declared In

METileFactory.h

  targetQueuePriority

The queue on which the worker works. Default is DISPATCH_QUEUE_PRIORITY_DEFAULT. You can set this to: DISPATCH_QUEUE_PRIORITY_HIGH DISPATCH_QUEUE_PRIORITY_DEFAULT DISPATCH_QUEUE_PRIORITY_LOW DISPATCH_QUEUE_PRIORITY_BACKGROUND

@property (assign) dispatch_queue_priority_t targetQueuePriority

Declared In

METileFactory.h

+ createInternetTileFactory:urlTemplate:subDomains:workerCount:useNetworkCache:diskCacheFile:mapName:

Creates a factory that manages TileDownloader objects for serving up internet map tiles.

+ (METileFactory *)createInternetTileFactory:(id<METileLoader>)meTileLoader urlTemplate:(NSString *)urlTemplate subDomains:(NSString *)subDomains workerCount:(int)workerCount useNetworkCache:(BOOL)useNetworkCache diskCacheFile:(NSString *)diskCacheFile mapName:(NSString *)mapName

Declared In

METileFactory.h

+ createInternetTileFactory:urlTemplateCenter:urlTemplateNorth:urlTemplateSouth:subDomains:workerCount:useNetworkCache:diskCacheFile:mapName:

Creates a factory that manages TileDownloader objects for serving up Altus internet map tiles which cover the poles.

+ (METileFactory *)createInternetTileFactory:(id<METileLoader>)meTileLoader urlTemplateCenter:(NSString *)urlTemplateCenter urlTemplateNorth:(NSString *)urlTemplateNorth urlTemplateSouth:(NSString *)urlTemplateSouth subDomains:(NSString *)subDomains workerCount:(int)workerCount useNetworkCache:(BOOL)useNetworkCache diskCacheFile:(NSString *)diskCacheFile mapName:(NSString *)mapName

Declared In

METileFactory.h

+ createInternetTerrainTileFactory:urlTemplateCenter:urlTemplateNorth:urlTemplateSouth:subDomains:workerCount:useNetworkCache:diskCacheFile:mapName:

Creates a factory that manages TileDownloader objects for serving up Altus internet terrain map tiles which cover the poles.

+ (METileFactory *)createInternetTerrainTileFactory:(id<METileLoader>)meTileLoader urlTemplateCenter:(NSString *)urlTemplateCenter urlTemplateNorth:(NSString *)urlTemplateNorth urlTemplateSouth:(NSString *)urlTemplateSouth subDomains:(NSString *)subDomains workerCount:(int)workerCount useNetworkCache:(BOOL)useNetworkCache diskCacheFile:(NSString *)diskCacheFile mapName:(NSString *)mapName

Declared In

METileFactory.h

+ createPackageTileFactory:packageFileName:workerCount:mapName:

Creates a factory that manages TilePackageReader objects for serving up a package map.

+ (METileFactory *)createPackageTileFactory:(id<METileLoader>)meTileLoader packageFileName:(NSString *)packageFileName workerCount:(int)workerCount mapName:(NSString *)mapName

Declared In

METileFactory.h