Conforms to NSObject
Declared in RMTileSource.h

Overview

The RMTileSource protocol describes the general interface for map tile sources. Whether retrieved from network sources or provided locally, tile sources must provide some specific minimum properties.

Tasks

Configuring the Supported Zoom Levels

Querying the Bounds

Configuring Caching

Configuring Tile Size

Configuring Descriptive Properties

Supplying Tile Images

Properties

cacheable

A Boolean value indicating whether the tiles from this source should be cached.

@property (nonatomic, assign, getter=isCacheable) BOOL cacheable

Discussion

A Boolean value indicating whether the tiles from this source should be cached.

Declared In

RMTileSource.h

latitudeLongitudeBoundingBox

The bounding box that the tile source provides coverage for.

@property (nonatomic, readonly) RMSphericalTrapezium latitudeLongitudeBoundingBox

Discussion

The bounding box that the tile source provides coverage for.

Declared In

RMTileSource.h

longAttribution

An extended version of the tile source’s attribution string.

@property (nonatomic, readonly) NSString *longAttribution

Discussion

An extended version of the tile source’s attribution string.

Declared In

RMTileSource.h

longDescription

An extended version of the tile source’s description.

@property (nonatomic, readonly) NSString *longDescription

Discussion

An extended version of the tile source’s description.

Declared In

RMTileSource.h

maxZoom

The maximum zoom level supported by the tile source.

@property (nonatomic, assign) float maxZoom

Discussion

The maximum zoom level supported by the tile source.

Declared In

RMTileSource.h

minZoom

The minimum zoom level supported by the tile source.

@property (nonatomic, assign) float minZoom

Discussion

The minimum zoom level supported by the tile source.

Declared In

RMTileSource.h

opaque

A Boolean value indicating whether the tiles from this source are opaque. Setting this correctly is important when using RMCompositeSource so that alpha transparency can be preserved when compositing tile images.

@property (nonatomic, assign, getter=isOpaque) BOOL opaque

Discussion

A Boolean value indicating whether the tiles from this source are opaque. Setting this correctly is important when using RMCompositeSource so that alpha transparency can be preserved when compositing tile images.

Declared In

RMTileSource.h

shortAttribution

A short version of the tile source’s attribution string.

@property (nonatomic, readonly) NSString *shortAttribution

Discussion

A short version of the tile source’s attribution string.

Declared In

RMTileSource.h

shortName

A short version of the tile source’s name.

@property (nonatomic, readonly) NSString *shortName

Discussion

A short version of the tile source’s name.

Declared In

RMTileSource.h

tileSideLength

The number of pixels along the side of a tile image for this source.

@property (nonatomic, readonly) NSUInteger tileSideLength

Discussion

The number of pixels along the side of a tile image for this source.

Declared In

RMTileSource.h

uniqueTilecacheKey

A unique string representing the tile source in the cache in order to distinguish it from other tile sources.

@property (nonatomic, readonly) NSString *uniqueTilecacheKey

Discussion

A unique string representing the tile source in the cache in order to distinguish it from other tile sources.

Declared In

RMTileSource.h

Instance Methods

imageForTile:inCache:

Provide an image for a given tile location using a given cache.

- (UIImage *)imageForTile:(RMTile)tile inCache:(RMTileCache *)tileCache

Parameters

tile

The map tile in question.

tileCache

A tile cache to check first when providing the image.

Return Value

An image to display.

Discussion

Provide an image for a given tile location using a given cache.

Declared In

RMTileSource.h

tileSourceHasTile:

Check if the tile source can provide the requested tile.

- (BOOL)tileSourceHasTile:(RMTile)tile

Parameters

tile

The map tile in question.

Return Value

A Boolean value indicating whether the tile source can provide the requested tile.

Discussion

Check if the tile source can provide the requested tile.

Declared In

RMTileSource.h