'VectorTileLayer' object has no attribute 'manager'

340
0
05-08-2024 08:47 AM
CBonsaint
New Contributor

Hello,

I have a web service on Online that I want to update automatically.

This is a Vector Tiles with a Feature.

I found how to update the Feature, but the Tile layer (hosted) is not updating.

CBonsaint_0-1715182212044.png

Clicking on the "Rebuild Cache" button is working perfectly...

But we are aiming to automate the rebuild cache daily by reproducing this rest operation and we tried running the following script:

 

import arcgis
from arcgis.mapping import VectorTileLayer

from arcgis.gis import GIS

 

portal = "https://...."

user = "abc"

password = "xxx"

gis = GIS(portal, user, password)


vector_layer_item = gis.content.get("abcd_item-id")
vector_tile_layer = VectorTileLayer.fromitem(vector_layer_item)
vtl_manager = vector_tile_layer.manager

update_tiles = vtl_manager.update_tiles()
type(update_tiles)

 

vtl_manager = vector_tile_layer.manager
AttributeError: 'VectorTileLayer' object has no attribute 'manager'

 

Do you have an idea?

 

 

0 Kudos
0 Replies