Instances of this class represents media that is displayed in a popup for a graphic.
Public Member Functions | |
| (void) | - decodeWithJSON: |
| (NSDictionary *) | - encodeToJSON |
| (id) | - initWithJSON: |
| (id) | - initWithTitle:caption:type:value: |
Static Public Member Functions | |
| (AGSPopupMediaInfo *) | + popupMediaInfoWithTitle:caption:type:value: |
Properties | |
| NSString * | caption |
| NSString * | title |
| AGSPopupMediaInfoType | type |
| NSDictionary * | value |
| - (void) decodeWithJSON: | (NSDictionary *) | json | [optional, inherited] |
Decode object from JSON representation.
| json | The JSON representation of the object to be decoded. |
| - (NSDictionary *) encodeToJSON | [optional, inherited] |
Encode and return JSON representation for object.
| - (id) initWithJSON: | (NSDictionary *) | json | [optional, inherited] |
Initialize and return object from JSON representation.
| json | The JSON representation of the object to be created. |
Reimplemented in AGSWebMapFeatureCollection.
| - (id) initWithTitle: | (NSString *) | title | ||
| caption: | (NSString *) | caption | ||
| type: | (AGSPopupMediaInfoType) | type | ||
| value: | (NSDictionary *) | value | ||
| + (AGSPopupMediaInfo*) popupMediaInfoWithTitle: | (NSString *) | title | ||
| caption: | (NSString *) | caption | ||
| type: | (AGSPopupMediaInfoType) | type | ||
| value: | (NSDictionary *) | value | ||
- (NSString*) caption [read, write, retain] |
The caption that is displayed for the media. This can contain a literal value, or a placeholder for value from the graphic's attribute for which the popup is displayed. The placeholder needs to be of the form {field_name} where field_name is a key in the graphic's attributes.
- (NSString*) title [read, write, retain] |
The title that is displayed for the media. This can contain a literal value, or a placeholder for value from the graphic's attribute for which the popup is displayed. The placeholder needs to be of the form {field_name} where field_name is a key in the graphic's attributes.
- (AGSPopupMediaInfoType) type [read, write, assign] |
The type of media.
- (NSDictionary*) value [read, write, retain] |
The value for the media. This will be of a different format depending on what the media type is.
If the media Is of type AGSPopupMediaInfoTypeImage, then the value dictionary can have the following keys: 1. linkURL - what the image should link to. 2. sourceURL - where to pull the image from.
Both linkURL and sourceURL are strings.
If the media is any type of chart, then the value dictionary will have the following: 1. fields – an array of field names to build the chart from. 2. normalizeField - the field to normalize all values to. (only applicable to line, bar, and column charts.)