Hello everyone,
I'm currently exploring ways to efficiently notify our users when updates become available for their maps, which have been downloaded from online sources.
I've investigated the use of getDownloadAvailability, but we created the map using GenerateOfflineMapJob and I haven't found any information related to scheduling update workflows.
Any advice or insights into this matter would be greatly appreciated.
Thank you in advance for your assistance!
Solved! Go to Solution.
You can use the class OfflineMapUpdatesInfo, which provides information on the available updates for an offline map. And the property scheduledUpdatesDownloadSize to schedule updates to be stored using the online map area and downloaded to your device at a later time or immediately.
You can use the class OfflineMapUpdatesInfo, which provides information on the available updates for an offline map. And the property scheduledUpdatesDownloadSize to schedule updates to be stored using the online map area and downloaded to your device at a later time or immediately.
Hi, It seems as if we can only use the methods above when we generated an offline map using a PreplannedMap area? Or can this be used with an offline map generated by user from geometry and parameters generated by user interaction (using createGenerateOfflineMapJob)?
Thank you!
There are two workflows you can use to take a map offline:
Both workflows will accept a user-defined/custom geometry as part of the task parameters to take the map offline.
I do not see a way to alter the geometry of a PreplannedMapArea, the 'AreaOfInterestGeometry' link is immutable. Is there another way to alter the geometry of a Preplanned Offline Map?
Thank you!!
@JakeHimmel Thanks for pointing it out, after looking into the API ref more, currently there is no way to alter a geometry of a preplanned offline map on the client side.
In order to choose which areas of the map to take offline, you would need to set up the portal item with a layer or list of layers in which you can define a custom offline map area. Then, using the SDK you can get these getPreplannedMapAreas to retrieve and choose an area to be taken offline. If you would like to change the preplanned map areas, you would need to update the web map settings and then take the updated area offline again.
More info: Enabling layers and maps for offline use.