This is a migrated thread and some comments may be shown as answers.

Load offline map from tile package (tpk) file

1 Answer 194 Views
Map
This is a migrated thread and some comments may be shown as answers.
Hafsa
Top achievements
Rank 1
Hafsa asked on 10 Feb 2015, 02:41 PM
Hello,

I have a local tile package file that has my basemap I can use in an offline application. A description of tile packages is given below:

http://resources.arcgis.com/en/help/runtime-wpf/concepts/index.html#/About_tile_packages/01700000004w000000/

Is it possible to have a custom map provider to be able to read this file and load it into the RadMap control? I did not find any existing examples doing this. Any help would be appreciated, thanks!

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 13 Feb 2015, 12:30 PM
Hello Hafsa,

The RadMap control does not provide a reader for .tpk files. You can see the supported formats in the Reading Map Shapes help article. Also, the map's provider works with requests to a service which should return the tile as an image. If you want to use the file locally you can host a service on the localhost and give the file to the custom provider through this service. However, you should convert the .tpk file to images, otherwise the map won't read anything.

Regards,
Martin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Map
Asked by
Hafsa
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or