1

I would like to extract the lists of content (Feature & Map Image Service) including the type of base map. Also, wanted to know if all the layers are loading correctly using ArcGIS API for Python.

import arcgis
portal = arcgis.gis.GIS("Portal URL", "Portal Username", "Portal Password")
maps = gis.content.search("WebMap item id")
for webmap in maps
    for lyr in webmap.get_data()['operationalLayers']
        print(lyr['title'])

I've extracted the layers but I would like to know the base map layers in the web map and the layer loading status

1
  • I see you found 'operationalLayers', if you explore the JSON a little bit more you would also find 'baseMap'... As for "loading status", I am not entirely sure what you are looking for here. Once you make the call using the API, and receive a response within the memory of your program, the "loading status" will always be loaded. Maybe I am misunderstanding the question though? Commented Jul 15, 2024 at 20:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.