Select to view content in your preferred language

Popup info

1188
4
Jump to solution
11-02-2012 08:10 AM
VIKRANTKRISHNA
Regular Contributor
In my feature layer I have domains. In the feature callout , the title is showing coded value. How can I show the coded value label as the title.
0 Kudos
1 Solution

Accepted Solutions
NimeshJarecha
Esri Regular Contributor
You should get needed information from AGSField's (feature layer's fields property) domain property.

Regards,
Nimesh

View solution in original post

0 Kudos
4 Replies
NimeshJarecha
Esri Regular Contributor
You should get needed information from AGSField's (feature layer's fields property) domain property.

Regards,
Nimesh
0 Kudos
VIKRANTKRISHNA
Regular Contributor
I am not sure if I understood this step. Is it something I need to set when setting featureLayer.outFields = [NSArray arrayWithObject:@"*"];
0 Kudos
PhilippFauser
Emerging Contributor
Hi vikrant327,

could you post some code how you create the callouts with your feature layer? (I need that for my project too and maybe I could help you with that.)

Some hints:
Could you access a featureSet on you feature layer?
If thats possible you could get the contents of the layer like this:
for(int i = 0; i < [featureSet.features count]; i++) {
AGSGraphic *feature = [inFeatureSet.features objectAtIndex:i];
String *content = [feature.attributes valueForKey:@"PUT HERE THE NAME OF THE CONTENT YOU WANT"];
}
0 Kudos
VIKRANTKRISHNA
Regular Contributor
Hi Philip,
           I am doing everything simple as given in http://resources.arcgis.com/en/help/runtime-ios-sdk/concepts/index.html#/Displaying_a_Callout/00pw00... . Simple adding the feature layer with all the attributes in the outFields to the map and calling shouldShowCalloutForGraphic: and mapView didShowCalloutForGraphic:  methods
0 Kudos