Is "Optimize Layer Drawing" Supported in API?

601
2
11-08-2021 12:39 PM
PatrickMcKinney99
Occasional Contributor

If you have a polyline or polygon hosted feature service in ArcGIS Online, there is an option under the Settings tab to Optimize Layer Drawing, which "increases the drawing speed of line and polygon layers with detailed geometry (e.g., many vertices) but also uses additional storage space to do so."

Does anyone know if there is a Python API way to run this process on feature services?  It would be a very beneficial thing to do via scripting.

0 Kudos
2 Replies
ArcProOne
New Contributor II

See example eight on this page: https://developers.arcgis.com/rest/services-reference/online/update-definition-feature-layer-.htm

Not a full answer, but maybe will get you on the right track.

0 Kudos
DiegoMeira
New Contributor III

When I have Optimize Layer Drawing active I cannot use featureLayer.layers[0].edit_features(). 
Having a way to programmatically disable the optimization temporarily, to perform the edit_features, would be appreciated. 

0 Kudos