invalidateOfflineRegion

Makes maps check each resource of the offline region regionId with the server before they use it.

The region keeps its resources. Starting its download again fetches the invalidated resources for offline use. If the style or a TileJSON document is then missing or invalid, the download reports an offline region response error and goes on from the stored copy. Resources that the current style no longer lists stay in the region until it's deleted.

See mln_runtime_invalidate_offline_region in the C API reference.

Errors:

  • Status.NOT_FOUND when the cache file has no region regionId.