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 and is best described by this web demo.

Interactive tile sources adopt the RMInteractiveSource 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:inMapView:

Returns the HTML-formatted output for a given point on a given map view, considering the currently active interactive tile source.

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

Parameters

outputType

The type of feature info desired.

point

A point in the map view.

mapView

The map view being interacted with.

Return Value

The formatted feature output.

Discussion

Returns the HTML-formatted output for a given point on a given map view, considering the currently active interactive tile source.

Declared In

RMInteractiveSource.h

supportsInteractivity

Returns YES if a tile source supports interactivity features.

- (BOOL)supportsInteractivity

Discussion

Returns YES if a tile source supports interactivity features.

Declared In

RMInteractiveSource.h