<AGSGPSInfoTemplateDelegate> Protocol Reference


Description

A protocol which must be adopted by any class wishing to display content in the callout window for the GPS location symbol . An instance of the class must then be set as the infoTemplateDelegate on the map's gps object.

The methods are optional. If the custom view method is implemented and does not return nil, then the other methods will not be called. This is because if a custom view is displayed in the callout then it is the only content in the callout.

Since:
1.0

List of all members.

Public Member Functions

(UIView *) - customViewForGPS:screenPoint:
(NSString *) - detailForGPS:screenPoint:
(UIImage *) - imageForGPS:screenPoint:
(NSString *) - titleForGPS:screenPoint:

Member Function Documentation

- (UIView*) customViewForGPS: (AGSGPS *)  gps
screenPoint: (CGPoint)  screen 
[optional]

The custom view to be displayed in the callout. If you implement this function then the title, detail and image methods will not get called, as only the custom view will be displayed in the callout. The callout will expand to fit the dimensions of the custom view.

Parameters:
gps The GPS to display the custom view for.
screen The coordinates at which the graphic callout will be displayed.
Returns:
The custom view to be displayed in the callout.
Since:
1.8
- (NSString *) detailForGPS: (AGSGPS *)  gps
screenPoint: (CGPoint)  screen 
[optional]

Detail string to be displayed in the callout.

Parameters:
gps The GPS to display detail for.
screen The coordinates at which the graphic callout will be displayed.
Returns:
The detail string.
Since:
1.0
- (UIImage*) imageForGPS: (AGSGPS *)  gps
screenPoint: (CGPoint)  screen 
[optional]

Image to be displayed in the callout. The image will be scaled to 40x40 points.

Parameters:
gps The GPS to display image for.
screen The coordinates at which the graphic callout will be displayed.
Returns:
The image to be displayed in the callout.
Since:
1.8
- (NSString *) titleForGPS: (AGSGPS *)  gps
screenPoint: (CGPoint)  screen 
[optional]

Title text to be displayed in the callout.

Parameters:
gps The GPS to display title for.
screen The coordinates at which the graphic callout will be displayed.
Returns:
The title text.
Since:
1.0