I have a script that, in version 2.3, accesses the webmap definition property ("wm.definition"). This property does not appear to be refactored in the new Map class (it's not listed here: https://developers.arcgis.com/python/latest/guide/overview24/). Is there another way to access the webmap definition that I'm missing?
In short, yes. Big breaking changes with arcgis.mapping / arcgis.map between v2.3 and 2.4. The release notes are informative, but often not super helpful for addressing breaking changes.
This works for me, thank you!
I'm relatively new at working with this api. Is it common for ESRI to introduce a bunch of breaking changes with a minor version update? That is not a good recipe for a good developer experience.
Hi @TrishPeller
It is not present as a property for the Map class. You can access the same information using the Item object get_data() method.
from arcgis.gis import GIS ## access AGOL agol = GIS("home") ## get the WebMap Item as an Item object wm_item = agol.content.get("WM_ITEM_ID") ## get the WebMap definition wm_def = wm_item.get_data() print(wm_def)
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.