Select to view content in your preferred language

how to update individual offline packages with the python api

260
0
12-07-2023 09:07 AM
TracyLove
New Contributor II

online in field map designer : /offline/ map areas / manage areas/
i can refresh or update individual offline packages.

Unfortunately in the python api i appear to only be able to update offline map areas.
which needlessly updates all of the related offline packages.

https://developers.arcgis.com/python/guide/managing-offline-map-areas/#updating-offline-areas
https://developers.arcgis.com/python/api-reference/arcgis.mapping.toc.html?#arcgis.mapping.OfflineMa...

I can enumerate the offline packages...

wmItem = agolSpace.content.get(MapId)
wm = arcgis.mapping.WebMap(wmItem)
for oma_item in wm.offline_areas.list():
for pkg in oma_item.related_items('Area2Package', 'forward'):
if ('SQLite' in pkg.type):
print(pkg.homepage)

is there some way in the python api to update individual packages?
is there a way to identify the relationship between a map layer and the offline packages that may be generated from it?

0 Kudos
0 Replies