Would there be a way to automate the packaging of a vector map all the way to replacing an existing VTPK/layer on AGOL? The whole process as I see it:
- Finished map ready for packaging (done)
- Create a vector tile index then use it for creating a VTPK (done)
- Replace currently existing VTPK on AGOL which would then refresh the web layer created from it (not done)
The last step is what stumps me. It's easy to do manually but I can't find a method of doing it programmatically. I can't just Replace Web Layer because the VTPK only produces a layer if published. Updating the file from AGOL does not refresh the hosted tile layer.
My reasoning for wanting to do this is so I don't have to do it manually from start to finish. I like automating my job. Also, it removes human error and tends to be faster than clicking around. The most important reason is preventing any dependent maps from breaking during this entire process. If I upload a modified vector map it should update all maps using that layer as a basemap.