Hi,
I am looking for the ArcGIS Python API to publish a hosted map image layer from a web feature layer, https://pro.arcgis.com/en/pro-app/latest/help/sharing/overview/publish-a-map-image-layer-from-a-hosted-feature-layer.htm#GUID-F8D58FC1-EE75-445D-A3A2-3E3EB202F728
The reason is that the client found the hosted line feature layers have serious performance issues with huge number of polylines, in their dashboards. The hosted feature layers are published from Databricks using ArcGIS Python API. They are looking for a way to publish the features to a hosted image layer instead, using ArcGIS API for Python. The data is located in data lake, i.e., there is no way to use relational database like PostgreSQL. If a direct way exists, that is ideal. Otherwise, a workaround would work.
Thanks.
Update: the final solution is publishing a map service to a standalone ArcGIS Server, instead of the hosted map service in Portal. Code.