METileLoader Protocol Reference

Conforms to NSObject
Declared in MEProtocols.h

Overview

Describes the methods an object must implement to act as an end-point for loading a variety of map resources.

– tileLoadComplete: required method

Called when a tile has been loaded through a virtual layer. Should only be called on the main thread, otherwise, a syncrhonous lock is used to ensure internal data structure integrity. Places the complete tile request back in the loading queue. See maxAsyncTileLoadsPerFrame.

- (void)tileLoadComplete:(METileProviderRequest *)meTileRequest

Declared In

MEProtocols.h

– tileLoadComplete:loadImmediate: required method

Called when a tile has been loaded through a virtual layer. If loadImmediate is NO, places the tile request in the loading queue (see maxAsyncTileLoadsPerFrame), otherwise the loading is immediate. NOTE: if loadImmediate is YES you must only make the call from the main thread, otherwise you risk corrupting internal data structure. Warning: immediate loading too many tiles can cause frame hitching.

- (void)tileLoadComplete:(METileProviderRequest *)meTileRequest loadImmediate:(BOOL)loadImmediate

Declared In

MEProtocols.h

– markerTileLoadComplete:markerArray: required method

Called by vector tile providers to supply geometry for a requested tile.

- (void)markerTileLoadComplete:(METileProviderRequest *)meTileRequest markerArray:(NSArray *)markerArray

Declared In

MEProtocols.h

– vectorTileLoadComplete:meGeometryGroup: required method

Called by vector tile providers to supply geometry for a requested tile.

- (void)vectorTileLoadComplete:(METileProviderRequest *)meTileRequest meGeometryGroup:(MEGeometryGroup *)meGeometryGroup

Declared In

MEProtocols.h

– vectorTileLoadComplete:tileData: required method

Called by vector tile providers to supply binary geometry for a requested tile.

- (void)vectorTileLoadComplete:(METileProviderRequest *)meTileRequest tileData:(NSData *)tileData

Declared In

MEProtocols.h

– terrainTileLoadComplete:terrainTile: required method

Called by terrain tile providers to supply terrain height data.

- (void)terrainTileLoadComplete:(METileProviderRequest *)meTileRequest terrainTile:(METerrainTile *)terrainTile

Declared In

MEProtocols.h

– tileIsNeeded: required method

Returns whether or not the engine considers the tile represented by meTileRequest to be required to satisfy the current view for any non-animated virtual map. This call will dispatched to the main queue if it is not made on the main queue.

- (BOOL)tileIsNeeded:(METileProviderRequest *)meTileRequest

Declared In

MEProtocols.h