Hi there,
How can I tell if a layer has subtype?
Thanks,
Shimin
Hmm. That service JSON doesn't have a subtypes attribute. Contrast with this version that I found: http://52.64.246.55/arcgis/rest/services/EPA/HFDRegulationRef/MapServer/11?f=json
That service is 10.6.1 compared to your 10.4.1. I'm asking around to see what this means (this is an area of the spec I'm not very familiar with). But it matches what we're seeing in Runtime and if I open that 10.6.1 layer in Runtime I do see the subtypes parsed properly.
You can look on the featureTable's featureSubtypes property. Note, to read this you'll have to ensure the featureTable is loaded (which it will be if the featureLayer is loaded).
Hi Nick,
Thanks a lot for your reply. I tried your suggestions but the subtypeField and featureSubtypes are all empty.
Loading the geodatabase:
I know the HFDHarvestPoly layer has subtype defined but as you can see the subtypeField and featureSubtypes are empty:
What am I doing wrong? Would you have any idea of how to implement subtype support?
Hmm. Thanks for the info, Shimin Cai. I'm doing some digging. Where is this feature service hosted? ArcGIS Online or ArcGIS Enterprise? If Enterprise, what version?
It's is ArcGIS Enterprise 10.4.1.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.