Skip to content

Instantly share code, notes, and snippets.

@mousebird
Created September 12, 2013 20:33
Show Gist options
  • Save mousebird/6543346 to your computer and use it in GitHub Desktop.
Save mousebird/6543346 to your computer and use it in GitHub Desktop.
/** The Elevation Source Delegate provides elevation data on demand for
a given tile. It returns a MaplyElevationChunk or nil if no data
is available. Your delegate may be called on a random thread, act accordingly.
*/
@protocol MaplyElevationSourceDelegate
/// Coordinate system we're providing the data in (and extents)
- (MaplyCoordinateSystem *)getCoordSystem;
/// Minimum zoom level (e.g. 0)
- (int)minZoom;
/// Maximum zoom level (e.g. 17)
- (int)maxZoom;
/// Return an elevation chunk (or nil) for a given tile
- (MaplyElevationChunk *)elevForTile:(MaplyTileID)tileID;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment