Change the thumbnail for offline areas

586
4
03-14-2022 03:11 AM
MattHowe
Occasional Contributor

I've created two offline areas in my field map and would like to change the thumbnail. Is it possible?

4 Replies
BryndaHatch
Esri Contributor

How did you create the offline areas?  Through MMPKs or through creating offline map areas of a web map?

0 Kudos
MattHowe
Occasional Contributor

Hi Brynda, offline areas of a web map.

0 Kudos
BryndaHatch
Esri Contributor

Are you seeing these thumbnails in your device in the Survey 123 app?  Or someplace else?

0 Kudos
Linde_Carmack
Occasional Contributor

I don't think there's a way to update the thumbnail from the offline area manager interface. But I do have a hosted notebook that includes a step to update an offline area thumbnail. It updates with a public image I have in ArcGIS Online. Here's the relevant code if you want to give it a try: 

from arcgis.gis import GIS
from arcgis.mapping import WebMap
gis = GIS('home') #authenticate
webmap_id = '' #item id for webmap item
thumbnail_url = '' #url for thumbnail image
wm_item = gis.content.get(webmap_id) #access webmap item
webmap = WebMap(wm_item) #ingest as a webmap object
offline_area = webmap.offline_areas.list()[0] #specify offline area from list of offline areas for webmap
offline_area.update(thumbnail = thumbnail_url) #update offline area thumbnail