arcgis-python-api
arcgis-python-api copied to clipboard
Allow enabling "offline mode" on a "VectorTileLayer" hosted on ArcGIS Enterprise
Is your feature request related to a problem? Please describe.
I am facing the following issue: how to enable "offline mode" on a "VectorTileLayer" hosted on ArcGIS Enterprise ?
Currently, it seems to me that it is only available on VectorTileLayerManager by specifying the "export_tiles_allowed" parameter of the "edit_tile_service" method but this method is not available on EnterpriseVectorTileLayerManager class for VectorTileLayer hosted on ArcGIS Enterprise 11.0
Using "arcgis" module v2.0.1:
vector_tile_layer = VectorTileLayer.fromitem(vtpk_layer)
vector_tile_layer.manager.edit_tile_service(export_tiles_allowed = True)
does not work as "edit_tile_service" does not exist:
AttributeError: 'EnterpriseVectorTileLayerManager' object has no attribute 'edit_tile_service'
Using "arcgis" module v2.1.0, the property manager is even broken itself when web adaptor has administrative access disabled (cf. https://github.com/Esri/arcgis-python-api/issues/1470).
Describe the solution you'd like I would like to be able to enable "offline mode" on VectorTileLayer hosted on ArcGIS Enterprise.
Describe alternatives you've considered I am considering doing the request to update the property manually.
Additional context
My workflow is to weekly update a vectorTileLayer which is already enabled for "offline mode". The problem is that when using the "replace_service" method, at the end, the "offline mode" property is reset and disabled so I would need to update it.
Note that on my setup, ArcGIS Webadaptor has administrative access disabled so I guess it should be clever enough to use ArcGIS Enterprise proxy just like it's done on the web interface.
Thanks for listening !