METileProviderRequest Class Reference

Inherits from NSObject
Declared in METileInfo.h

Overview

Conveys information about virtual map tiles. When a virtual layer is added, these objects will be passed to the requestTile or requestTileAsync function of the tile provider. The tile provider populates the request with data and sets the response code.

  requestedTile

Information about the tile being requested.

@property (retain) METile *requestedTile

Declared In

METileInfo.h

  tileProviderResponse

Tile providers set this value based on how the mapping engine should interpret the tile METileProviderRequest it gets back form the tile provider.

@property (assign) METileProviderResponse tileProviderResponse

Declared In

METileInfo.h

  mapid

The internal map ID of the map that contains this tile.

@property (assign) size_t mapid

Declared In

METileInfo.h

  width

Width of the tile image.

@property (assign) unsigned int width

Declared In

METileInfo.h

  height

Height of the tile image.

@property (assign) unsigned int height

Declared In

METileInfo.h

  pImageDataLength

In the case of setting pImageData, the lenght in bytes of the data.

@property (assign) unsigned int pImageDataLength

Declared In

METileInfo.h

  uiImage

If set, a pointer to a UIImage object to use as image data.

@property (retain) UIImage *uiImage

Declared In

METileInfo.h

  nsImageData

If set, a pointer to an NSData object whose bytes represent compressed JPG or PNG image data. If set, you should also set the imageDataType appropriately.

@property (retain) NSData *nsImageData

Declared In

METileInfo.h

  pImageData

If set, a pointer to memory whose bytes represent compressed JPG or PNG image data. If set, you should also set the imageDataType appropriately.

@property (assign) void *pImageData

Declared In

METileInfo.h

  fileName

If set, a pointer to a jpg or png file which the engine will load and decompress. The engine has native support decompressing png and jpg images very quickly.

@property (retain) NSString *fileName

Declared In

METileInfo.h

  cachedImageName

If set, specifies the name of a cached image to use. You may cache images by using MEMapViewController addCachedImage.

@property (retain) NSString *cachedImageName

Declared In

METileInfo.h

  imageDataType

If setting nsImageData or pImageData, you should set this to the appropriate image data type.

@property (assign) MEImageDataType imageDataType

Declared In

METileInfo.h

  isOpaque

If set, tells the mapping engine that every pixel of the tile is lit and has no semi-transparent pixels. This allows the engine to optimize storage and layering of the tile (i.e. no tile underneath this tile will be visible if it is opaque.

@property (assign) BOOL isOpaque

Declared In

METileInfo.h

  isDirty

If set to YES, this tile can be ejected and re-requested by calling refreshDirtyTiles on the MEMapViewController object. In order for this to work, you must provied a cached image name which would generally be some form of placeholder image.

@property (assign) BOOL isDirty

Declared In

METileInfo.h

  isProxy

If set to YES, tells the mapping engine to only render the tile if it cannot sample from a parent tile that was previously requested. This response can be used, for example, if you have an intermittent internet connection and cannot download the requested tile, but do not wish to show the user a placeholder tile if a parent tile can be sampled from.

@property (assign) BOOL isProxy

Declared In

METileInfo.h

– initWithUID:width:height:

Initializer for METileProviderRequest

- (id)initWithUID:(uint64_t)uid width:(int)width height:(int)height

Declared In

METileInfo.h

– setPrivateData:

Used by the engine to write a pointer to internal engine data structures.

- (void)setPrivateData:(void *)pData

Declared In

METileInfo.h

– getPrivateData

Used by the engine to read internal engine data structures.

- (void *)getPrivateData

Declared In

METileInfo.h