Is "Optimize Layer Drawing" Supported in API?

11-08-2021 12:39 PM
New Contributor III

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
New Contributor II

See example eight on this page:

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

0 Kudos
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