feature.attributes.layerName = result.layerName;
if (feature.attributes["Your field name"] == '0') { feature.attributes["Your field name"] = 'No data'; }
afterfeature.attributes.layerName = result.layerName;insert this if (feature.attributes["Your field name"] == '0') { feature.attributes["Your field name"] = 'No data'; } I'm not sure if there will be data type mismatch, but this is the way...
function calculateAcre(/*string*/attributeValue, /*string*/ attributeName, /*object*/ allAttributes){ return attributeValue!="0"?attributeValue:"Unknown"; }
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.