Select to view content in your preferred language

Can maps made available offline without a portal item (id)?

461
3
07-17-2023 06:51 AM
padmalcom
Occasional Contributor

Hi, we load a wms layer (and later a vector tiled layer) to build a Basemap that initializes the map in our android app. Currently, we try to make the map available offline but the error we get says the map must have an item property:

Caused by: com.arcgismaps.exceptions.ArcGISExceptionImpl: message=Illegal state., additionalMessage=Failed to load offline map task.
2023-07-17 15:15:41.259 20654-20654 System.err com.x.mobile.stage W The online map must have an item property which is its online portal item., errorCode=6

We don't operate the portal server and use direct URLs to the service, such as

https://sgx.geodatenzentrum.de/wms_topplus_open?request=GetCapabilities&service=wms

 My question is now: How can I make a map available offline without the portal item?

3 Replies
MarkBockenhauer
Esri Regular Contributor

Do you want the WMS data to actually display and work when the user is offline?

Or is it something that you want in the map, so that it can work if the user is online?

0 Kudos
padmalcom
Occasional Contributor

Hi @MarkBockenhauer, we want the wms layer to show as basemap when the use is offline.

0 Kudos
MarkBockenhauer
Esri Regular Contributor

WMS does not support offline use.   Vector Tile Packages (.vtpk) and Tile Packages (.tpkx) do work well for offline basemap workflows.

0 Kudos