Hi,
I want to get hold of a feature layer's display field. This property doesn't seem to be present on a feature layer. Is there a way to get hold of it with version 4 of the API?
Thanks,
Matt
Matt,
The way I have found is this:
featureLayer.on("layerview-create", function(){ console.info(featureLayer.source.layerDefinition.displayField); });
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.