MKTileOverlayRenderer Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/MapKit.framework
Availability
Available in iOS 7.0 and later.
Companion guide
Declared in
MKTileOverlayRenderer.h

Overview

An MKTileOverlayRenderer object handles the drawing of tiles managed by an MKTileOverlay object. You create instances of this class when tile overlays become visible on the map view. A renderer works closely with its associated tile overlay object to coordinate the loading and drawing of tiles at appropriate times.

For information about how to specify the tiles to display on the map, see MKTileOverlay Class Reference.

Tasks

Initializing a Tile Renderer

Reloading the Tile Data

Instance Methods

initWithTileOverlay:

Initializes and returns a tile renderer with the specified overlay object.

- (id)initWithTileOverlay:(MKTileOverlay *)overlay
Parameters
overlay

The tile overlay object whose contents you want to draw.

Return Value

An initialized tile renderer object.

Discussion

The returned renderer object works with the tile overlay object to coordinate the loading and display of its map tiles.

Availability
  • Available in iOS 7.0 and later.
Declared In
MKTileOverlayRenderer.h

reloadData

Forces tiles to be reloaded and displayed.

- (void)reloadData
Discussion

Use this method to remove the overlay’s existing tile images and reload them from the original source. This method automatically causes the renderer to redraw the new tiles as soon as they are loaded into memory.

Availability
  • Available in iOS 7.0 and later.
Declared In
MKTileOverlayRenderer.h