hello,
i already tried, mapping geometry..... it does not return me any result..... above code of mine works perfect only thing instead of getting only result at Click point...it gives me near by features too...as can be seen from two parallel line from 1st image.
2. i am looping through graphics i have stored all the graphics of result....then i filter out result and accordingly i loop through individual result and graphics...but still it display only last graphics.....
for (NSArray *arr1 in arrStoredGraphics) {
if ([[arr objectAtIndex:2] isEqualToString:[arr1 objectAtIndex:0]]) {
AGSCalloutTemplate *m_AssetDetailCallout = [[AGSCalloutTemplate alloc]init];
m_AssetDetailCallout.titleTemplate = [arr1 objectAtIndex:0];
m_AssetDetailCallout.detailTemplate = @"Click for more detail..";
self.m_mapView.calloutDelegate=self;
self.m_mapView.callout.delegate =self;
AGSGraphic *querygraphic =[[AGSGraphic alloc] init];
querygraphic.geometry=[arr1 objectAtIndex:1];
querygraphic.symbol=[arr1 objectAtIndex:2];
querygraphic.infoTemplateDelegate=m_AssetDetailCallout;
NSMutableDictionary *dFeatures=[[NSMutableDictionary alloc] init];
dFeatures=[arr1 objectAtIndex:4];
[dFeatures setObject:[arr objectAtIndex:1] forKey:@"FieldValue"];
[querygraphic setAllAttributes:dFeatures];
[m_graphicsLayer addGraphic:querygraphic];
[self.m_mapView.callout showCalloutAtPointAGSPoint *)querygraphic.geometry.envelope.center forGraphic:querygraphic animated:YES];
break;
}
plz help either to reduce search query result only on click point or show all graphics display result.... so the user know which graphic is belongs to which result....