RMTileMillSource Class Reference
Inherits from | RMGenericMapSource |
Declared in | RMTileMillSource.h |
Overview
An RMTileMillSource is used to display map tiles from a live, running instance of TileMill. All instances of TileMill automatically include an HTTP server, allowing network access outside of the application. This tile source allows for an easier development cycle between map editing and testing in an iOS application.
Instance Methods
initWithHost:mapName:tileCacheKey:minZoom:maxZoom:
Initialize and return a newly allocated TileMill tile source based on a given host and map name. This is ideal for testing on an actual iOS device if the network name or address of the computer running TileMill is passed as the host
parameter.
- (id)initWithHost:(NSString *)host mapName:(NSString *)mapName tileCacheKey:(NSString *)tileCacheKey minZoom:(float)minZoom maxZoom:(float)maxZoom
Parameters
- host
The hostname or IP address of the computer running TileMill.
- mapName
The name of the map in TileMill, substituting dashes for spaces.
- tileCacheKey
A unique cache string to use for this tile source’s tiles in the tile cache.
- minZoom
The minimum zoom level supported by the map.
- maxZoom
The maximum zoom level supported by the map.
Return Value
An initialized TileMill tile source.
Discussion
Initialize and return a newly allocated TileMill tile source based on a given host and map name. This is ideal for testing on an actual iOS device if the network name or address of the computer running TileMill is passed as the host
parameter.
Declared In
RMTileMillSource.h
initWithMapName:tileCacheKey:minZoom:maxZoom:
Initialize and return a newly allocated TileMill tile source based on a given map name. This assumes that TileMill is running on the local development computer (e.g., localhost
), which will not work from an iOS device but will work in the iOS Simulator.
- (id)initWithMapName:(NSString *)mapName tileCacheKey:(NSString *)tileCacheKey minZoom:(float)minZoom maxZoom:(float)maxZoom
Parameters
- mapName
The name of the map in TileMill, substituting dashes for spaces.
- tileCacheKey
A unique cache string to use for this tile source’s tiles in the tile cache.
- minZoom
The minimum zoom level supported by the map.
- maxZoom
The maximum zoom level supported by the map.
Return Value
An initialized TileMill tile source.
Discussion
Initialize and return a newly allocated TileMill tile source based on a given map name. This assumes that TileMill is running on the local development computer (e.g., localhost
), which will not work from an iOS device but will work in the iOS Simulator.
Declared In
RMTileMillSource.h