hbostic

return codedValue in InfoWindow using Custom Formatter

Discussion created by hbostic on Apr 29, 2011
Sorry if I missed how to do this in the documentation.

I want to use one function to return the coded value for an attribute

Something like

function CVFormatter(value,key,data){
      return cvLayer.fields[key].domain.codedValues[value];
     }
I'm not sure of the way to get the index from key

Thanks in advance

Outcomes