Create a Tile Layer from a Feature Layer Collection

529
1
07-18-2018 10:55 AM
vishwasuppoor1
New Contributor II

I recently started using ArcGIS Python API, so I might be completely off the track here.

I am building a web app in which a map is displayed using a cached Tile Layer. The data to be visualized is dynamic(changes happen about 2-3 times a month), so I am writing a Python script to automatically publish a new Tile Layer whenever the data is updated. Based on the new data, I am able to publish an updated Feature Collection Item, but I get an error when I try to create a Tile Layer out of it using FeatureLayerCollectionItem.create_tile_service(). If there is a guide/example demonstrating converting feature layer collection to a tile layer, please point me to it. I couldn't find it.

TIA

Tags (1)
0 Kudos
1 Reply
vishwasuppoor1
New Contributor II

I figured that the above error occurs when the same title is used for 2 different layers even if the previous layer was already deleted. But now, I am getting the error "Invalid cache levels", even though the tile layer is being created. Any ideas why it might be happening?