Declared in RMInteractiveSource.h

Overview

Developers can import RMInteractiveSource in order to enable embedded interactivity in their RMMapView, RMMBTilesSource, and RMMapboxSource objects. Interactivity is based on the UTFGrid specification, which is a space-efficient way to encode many arbitrary values for pixel coordinates at every zoom level, allowing later retrieval based on user events on those coordinates. For example, the user touching a pixel in Spain could trigger retrieval of Spain’s flag image for display.

Interactive map views adopt the RMInteractiveMapView protocol.

Interactivity currently supports two types of output, teaser and full. These two types are ideal for master/detail interfaces or for showing a MapKit-style detail-toggling point callout.

Tasks

Querying Interactivity

Instance Methods

formattedOutputOfType:forPoint:

Returns the HTML-formatted output for a given point on a given map view.

- (NSString *)formattedOutputOfType:(RMInteractiveSourceOutputType)outputType forPoint:(CGPoint)point

Parameters

outputType

The type of feature info desired.

point

A point in the map view.

Return Value

The formatted feature output.

Discussion

Returns the HTML-formatted output for a given point on a given map view.

Declared In

RMInteractiveSource.h

supportsInteractivity

Returns YES if a map view supports interactivity features given its current tile sources.

- (BOOL)supportsInteractivity

Discussion

Returns YES if a map view supports interactivity features given its current tile sources.

Declared In

RMInteractiveSource.h