AnsweredAssumed Answered

Producing a call out and popup using .tpk as feature layer

Question asked by jmcleod3 on Aug 31, 2012
Latest reply on Sep 26, 2012 by jmcleod3
Hello Everyone,
How do I accomplish this?
I've done it using a WebMap but not with a tile package.

I'm thinking it's somewhere in the code below.

-(void)mapView:(AGSMapView *)mapView didClickCalloutAccessoryButtonForGraphic:(AGSGraphic *)graphic{          self.activeFeatureLayer = (AGSFeatureLayer*) graphic.layer;          AGSPopupInfo *info = [AGSPopupInfo popupInfoForGraphic:graphic];          NSLog(@"%@",graphic.layer.name);          //Show popup for the graphic because the user tapped on the callout accessory button     info.title = @"Parcel Information";          //if (![graphic.layer.name isEqualToString:@"Kochville_Township_Aerials"]){         //ADDED THIS LINE FROM THE "Related Record Editing Sample"         //self.popupVC = [[[AGSPopupsContainerViewController alloc] initWithPopupInfo:info graphic:graphic usingNavigationControllerStack:NO] autorelease];              //COMMENTED MY CODE         self.popupVC = [[[AGSPopupsContainerViewController alloc] initWithWebMap:self.webmap forFeature:graphic usingNavigationControllerStack:NO] autorelease];                  self.popupVC.delegate = self;         self.popupVC.modalTransitionStyle =  UIModalTransitionStyleFlipHorizontal;                  //If iPad, use a modal presentation style         if([[UIDevice currentDevice] isIPad])             self.popupVC.modalPresentationStyle = UIModalPresentationFormSheet;         [self presentModalViewController:self.popupVC animated:YES];              //}      }


more directly at

self.popupVC = [[[AGSPopupsContainerViewController alloc] initWithWebMap:self.webmap forFeature:graphic usingNavigationControllerStack:NO] autorelease];


Any help with this will be greatly appreciated.
Thanks,
John

Outcomes