10.2.5: <AGSLocationDisplayInfoTemplateDelegate> Protocol Reference
10.2.5
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
<AGSLocationDisplayInfoTemplateDelegate> Protocol Reference

Description

A protocol which must be adopted by any class wishing to display content in the callout window for the location display . An instance of the class must then be set as the infoTemplateDelegate on the map's location display 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
10.1.1
Deprecated:
Deprecated at 10.2. Please use AGSCalloutDelegate instead.
Inheritance diagram for <AGSLocationDisplayInfoTemplateDelegate>:

Instance Methods

(AGSView *) - customViewForLocationDisplay:screenPoint:
 
(NSString *) - detailForLocationDisplay:screenPoint:
 
(AGSImage *) - imageForLocationDisplay:screenPoint:
 
(NSString *) - titleForLocationDisplay:screenPoint:
 

Method Documentation

- (AGSView*) customViewForLocationDisplay: (AGSLocationDisplay *)  ld
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
ldThe location display to display the custom view for.
screenThe coordinates at which the graphic callout will be displayed.
Returns
The custom view to be displayed in the callout.
Since
10.1.1
- (NSString *) detailForLocationDisplay: (AGSLocationDisplay *)  ld
screenPoint: (CGPoint)  screen 
optional

Detail string to be displayed in the callout.

Parameters
ldThe location display to display detail for.
screenThe coordinates at which the graphic callout will be displayed.
Returns
The detail string.
Since
10.1.1
- (AGSImage*) imageForLocationDisplay: (AGSLocationDisplay *)  ld
screenPoint: (CGPoint)  screen 
optional

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

Parameters
ldThe location display to display image for.
screenThe coordinates at which the graphic callout will be displayed.
Returns
The image to be displayed in the callout.
Since
10.1.1
- (NSString *) titleForLocationDisplay: (AGSLocationDisplay *)  ld
screenPoint: (CGPoint)  screen 
optional

Title text to be displayed in the callout.

Parameters
ldThe location display to display title for.
screenThe coordinates at which the graphic callout will be displayed.
Returns
The title text.
Since
10.1.1