How to download offline map from basemap style of online map?

455
4
08-01-2022 07:50 AM
RobWag
by
New Contributor II

Hello,

I can now successfully display an online map using following code. It shows the world imagery with labels.

 

Map map = new Map();    
map.Basemap = new Basemap(BasemapStyle.ArcGISImagery);
currentMapView.Map = map;
await map.LoadAsync();
currentMapView.WrapAroundMode = Esri.ArcGISRuntime.UI.WrapAroundMode.EnabledWhenSupported;

 

How can I now download an offline map of a selected area?

There is the rest api. 

https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer/

Is there a documentation or an overview? Is there a way to download the world imagery with labels as an offline map?

It would be perfect if I can just use the basemap style (ArcGISImagery) from the online map to download the offline map.

Maybe with following?

https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery?type={type}&token={ACCESS...}

Does anyone have any idea how this could be done?

Thanks.

0 Kudos
4 Replies
JoeHershman
MVP Regular Contributor

You cannot just take a base map offline.  You would need to do is create a WebMap and then take the webmap offline.  The is considerable information on the dev site of the different ways to do this  Offline maps, scenes, and data 

However, this is very limited as to the size of the area you can take offline ands still have good resolution. (generally significant)

Thanks,
-Joe
0 Kudos
RobWag
by
New Contributor II

Thanks for your help.

Can I download an offline map by using following rest api with an access token?

https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery?type={type}&token={ACCESS...}

Unfortunately I will receive a json parse invalid token exception, though I should have a valid token.

0 Kudos
JoeHershman
MVP Regular Contributor

This rest call has nothing to do with taking something offline.  If you want offline needs to be via a Web Map.  That is simply a rest endpoint for the service.

Thanks,
-Joe
0 Kudos
RobWag
by
New Contributor II

Thanks for your help. I understand.

Is there a way to download an offline map (World_Imagery + labels)?

I can download World_Imagery.tpk and Hybrid_Reference_Layer.vtpk and put them in the basemap together in different layers. But unfortunately the Hybrid_Reference_Layer is not transparent. The legacy World_Boundaries_and_Places just has the labels (the rest is transparent) and works fine. 

I still don't understand why there isn't a possibility to download a hybrid World_Imagery with labels or am I misunderstanding something?

0 Kudos