Inherits from RMAbstractMercatorTileSource : NSObject
Declared in RMAbstractWebMapSource.h

Overview

Abstract class representing a network-based location for retrieving map tiles for display. Developers can create subclasses in order to provide custom web addresses for tile downloads.

Tasks

Configuring Network Behavior

Providing Tile Images

Properties

requestTimeoutSeconds

The network timeout for each attempt to download a tile image.

@property (nonatomic, assign) NSTimeInterval requestTimeoutSeconds

Discussion

The network timeout for each attempt to download a tile image.

Declared In

RMAbstractWebMapSource.h

retryCount

The number of times to retry downloads of a given tile image.

@property (nonatomic, assign) NSUInteger retryCount

Discussion

The number of times to retry downloads of a given tile image.

Declared In

RMAbstractWebMapSource.h

Instance Methods

URLForTile:

Provide the URL for a given tile.

- (NSURL *)URLForTile:(RMTile)tile

Parameters

tile

A specific map tile.

Return Value

A URL to a tile image to download.

Discussion

Provide the URL for a given tile.

Declared In

RMAbstractWebMapSource.h

URLsForTile:

Provide multiple URLs for a given tile. Each URL is fetched in turn and composited together before placement on the map. URLs are ordered from the bottom layer to the top layer.

- (NSArray *)URLsForTile:(RMTile)tile

Parameters

tile

A specific map tile.

Return Value

An array of tile URLs to download, listed bottom to top.

Discussion

Provide multiple URLs for a given tile. Each URL is fetched in turn and composited together before placement on the map. URLs are ordered from the bottom layer to the top layer.

Declared In

RMAbstractWebMapSource.h