AnsweredAssumed Answered

Problem with displaying an image in an AGSPopupInfo?

Question asked by s26761 on Feb 22, 2012
Latest reply on Feb 25, 2012 by s26761
Hello

I'm having a problem with the code below to display an image in an AGSPopupInfo. Any idea what may be the cause? Any example?

   AGSPopupInfo *info = [AGSPopupInfo popupInfoForGraphic:graphic];
    NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:mapUrl, @"sourceURL", nil];
    AGSPopupMediaInfo *mediaInfo = [[AGSPopupMediaInfo alloc] initWithTitle:@"Title" caption:@"Caption" type:AGSPopupMediaInfoTypeImage value:dict];
    info.mediaInfos = [NSArray arrayWithObject:mediaInfo];
    self.popupVC = [[AGSPopupsContainerViewController alloc] initWithPopupInfo:info graphic:graphic usingNavigationControllerStack:NO];

Also, is there any way to use the AGSAttachmentManager with an AGSGraphicsLayer instead of an AGSFeatureLayer?

Thanks.

Rgds
Ong CF

Outcomes