Good afternoon
How can I count records in web map layers?
I want to count records in two layers from a web map. How can I do that?
# Open web map and layer
#
gis = GIS("Pro")
# Load the web map
webmap_item = gis.content.get("....")
# Load the web map
web_map = WebMap(webmap_item)
for layer in web_map.layers:
layer
print(layer.title)
# Query with return_count_only
# Get the layer as a FeatureLayer object
feature_layer = ?????
# Count features