stanislav.gusakov-esri-portugal-pt-esridist

Callout on a specific graphic layer

Discussion created by stanislav.gusakov-esri-portugal-pt-esridist on Feb 24, 2011
Latest reply on Mar 2, 2011 by stanislav.gusakov-esri-portugal-pt-esridist
        AGSPictureMarkerSymbol *marker = [AGSPictureMarkerSymbol pictureMarkerSymbolWithImageNamed:@"logo1.png"];
 marker.xoffset = 9;
 marker.yoffset = -16;
 marker.hotspot = CGPointMake(-9, -11);
 
 self.calloutTemplate.titleTemplate = @"Location";
 self.calloutTemplate.detailTemplate = @"Information";
 

 
 AGSGraphic *graphicz = [[AGSGraphic alloc] initWithGeometry:mappoint
                 symbol:marker 
                 attributes:nil
                        infoTemplateDelegate:self.calloutTemplate];
 

        [self.mapView showCalloutAtPoint:mappoint forGraphic:graphicz animated:YES];
 
 [graphicz release];
 [self.graphicsLayer dataChanged];
 


Doesn't work.
All I get is an empty callout with no text.
How to make a callout info for a specific graphics layer?

Outcomes