I'm trying to read domain values on a map, how to achieve this objective in arcgis javascript api? any help?
[GIS] Getting value coded of domain from map layer with arcgis javascript api
arcgis-javascript-apidomainsjavascript
arcgis-javascript-apidomainsjavascript
I'm trying to read domain values on a map, how to achieve this objective in arcgis javascript api? any help?
Best Answer
You can get this from the
FeatureLayer
class. There is an attribute calledfields
, which is an array ofField
objects. TheField
class hasdomain
attribute.The following will output the domains in the console (if any):
Good luck!