Inherits from NSObject
Conforms to RMTileSource
Declared in RMMBTilesSource.h

Overview

An RMMBTilesSource provides for a fast, offline-capable set of map tile images served from a local database. MBTiles is an open standard for map tile image transport.

Instance Methods

centerCoordinate

A suggested starting center coordinate for the map layer.

- (CLLocationCoordinate2D)centerCoordinate

Discussion

A suggested starting center coordinate for the map layer.

Declared In

RMMBTilesSource.h

centerZoom

A suggested starting center zoom level for the map layer.

- (float)centerZoom

Discussion

A suggested starting center zoom level for the map layer.

Declared In

RMMBTilesSource.h

coversFullWorld

Returns YES if the tile source provides full-world coverage; otherwise, returns NO.

- (BOOL)coversFullWorld

Discussion

Returns YES if the tile source provides full-world coverage; otherwise, returns NO.

Declared In

RMMBTilesSource.h

initWithTileSetResource:

Initialize and return a newly allocated MBTiles tile source based on a given bundle resource with the extension .mbtiles.

- (id)initWithTileSetResource:(NSString *)name

Parameters

name

The name of the resource file. If name is an empty string or nil, uses the first file encountered with the extension .mbtiles.

Return Value

An initialized MBTiles tile source.

Discussion

Initialize and return a newly allocated MBTiles tile source based on a given bundle resource with the extension .mbtiles.

Declared In

RMMBTilesSource.h

initWithTileSetResource:ofType:

Initialize and return a newly allocated MBTiles tile source based on a given bundle resource.

- (id)initWithTileSetResource:(NSString *)name ofType:(NSString *)extension

Parameters

name

The name of the resource file. If name is an empty string or nil, uses the first file encountered of the supplied type.

extension

If extension is an empty string or nil, the extension is assumed not to exist and the file is the first file encountered that exactly matches name.

Return Value

An initialized MBTiles tile source.

Discussion

Initialize and return a newly allocated MBTiles tile source based on a given bundle resource.

Declared In

RMMBTilesSource.h

initWithTileSetURL:

Initialize and return a newly allocated MBTiles tile source based on a given local database URL.

- (id)initWithTileSetURL:(NSURL *)tileSetURL

Parameters

tileSetURL

Local file path URL to an MBTiles file.

Return Value

An initialized MBTiles tile source.

Discussion

Initialize and return a newly allocated MBTiles tile source based on a given local database URL.

Declared In

RMMBTilesSource.h

legend

Any available HTML-formatted map legend data for the tile source, suitable for display in a UIWebView.

- (NSString *)legend

Discussion

Any available HTML-formatted map legend data for the tile source, suitable for display in a UIWebView.

Declared In

RMMBTilesSource.h