// initial map / layer setup AGSTiledMapServiceLayer *tiledLayer = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:[NSURL URLWithString:@MAP_SERVER]]; AGSEnvelope *env = [[AGSEnvelope alloc] initWithXmin:INITIAL_XMIN ymin:INITIAL_YMIN xmax:INITIAL_XMAX ymax:INITIAL_YMAX spatialReference:[AGSSpatialReference spatialReferenceWithWKID:102100]]; [self.mapView addMapLayer:tiledLayer withName:@"Tiled Layer"]; [self.mapView zoomToEnvelope:env animated:NO]; [self.mapView setCalloutDelegate:self]; // user taps on search result AGSGraphic *g = [self.featureSet.features objectAtIndex:indexPath.row]; [self.mapView showCalloutAtPoint:nil forGraphic:g animated:NO];
Solved! Go to Solution.