Hello -- I have been able to create a Vector Tile Layer with ArcGIS Pro 2.7 and publish it to ArcGIS Online. First, I create a vector tile package using the 'Create Vector Tile Package' tool and then I publish it with the 'Share Package' tool. This workflow results in Tile Layer (hosted) and Vector Tile Package items on AGOL. When I open the Tile Layer on the map viewer, I see that there's no option to enable the attributes/fields pop-up. I see that an alternative workflow on ArcGIS Pro is to create the vector tile package and sharing it via Share>Publish Web Layer. This option shows an additional configuration setting to cache locally or online. In my case, the 'cache online' option is grayed out. During this year's Dev Summit, I watched a session demonstrating how to create a Vector Tile Layer from an existing feature layer (hosted) via developers.arcgis.com>layers>Publish vector tile layer. This workflow allows for choosing the fields to publish (see screenshot). Question here: Is there a way to publish the fields to display on the Tile Layer when creating the vector tile package with ArcGIS Pro? Is this related to the caching option? More background on my specific use case, we'll consume the VTL with different ESRI and non-ESRI Front-End APIs. Thanks for your help!
... View more
Hey ET, Thank you for your question. I've added a sample script below that will set time on the input features you want to use. However, you will have to open your map to prepare the data initially. After that first step in the map, you'll be able to use the data in a standalone Python script. import arcpy
# To create the lyrx: add your layer to a map, open the layer properties and enable time, then right-click on the layer and choose to Share As Layer File
input_lyrx = r'C:\data\layer_files\L0ubersf_subset.lyrx'
# Make Feature Layer converts the lyrx to features
make_feature_layer_output = arcpy.MakeFeatureLayer_management(input_lyrx, "make_feature_layer_output")
# Apply symbology sets the time on the feature layer based on the lyrx file definition
# Now you can use the make feature layer output as time enabled points
summary_statistics="latitude SUM;latitude VAR") Please let me know if this works for you or if you have any questions. Thank you! Bethany
... View more