Select to view content in your preferred language

Trying to automate Layer Properties: Display field

143
2
a week ago
SkyeVandenberg
New Contributor

Hello, 

In my work I spend a lot of time uploading maps to AGOL, each time I have to manually go through each layer to change the Display field as it defaults to "Shape_Length" which is an attribute of ever polygon or line feature class. For some reason AGOL wont allow a layer to upload with "Shape_Length" as the Display field and I have to go in a change it to OBJECTID or another field.

I'm trying to write a phython script to automate the Layer Properties all layers in a map. Specifically I need to update the Display field to OBJECTID or  another field name.

0 Kudos
2 Replies
Clubdebambos
MVP Regular Contributor

Hi @SkyeVandenberg,

Have you got an example (screenshot) of where this Display Field is showing up in an AGOL Map or Feature Service so I can see what you want to alter?

Cheers,

Glen

~ learn.finaldraftmapping.com
0 Kudos
DebbieBull
Occasional Contributor
0 Kudos