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

Where the downloaded OSM Map images stored in system location.?

6 Answers 453 Views
Map
This is a migrated thread and some comments may be shown as answers.
bharathi
Top achievements
Rank 1
bharathi asked on 08 Nov 2019, 08:40 AM
Hi,

After installing the application, I am using OSM maps. That download images from OSM server and reused from cache location. Can i know where this downloaded images stored in system location.?

 
Thanks,

6 Answers, 1 is accepted

Sort by
0
bharathi
Top achievements
Rank 1
answered on 11 Nov 2019, 05:16 AM
Any update on this.?
0
Martin Ivanov
Telerik team
answered on 12 Nov 2019, 07:29 AM

Hello bharathi,

Can you tell me how do you download the images? Also, do you use the RadMap control? If so, how exactly? Can you send a code snippet showing your setup?

If you use the OpenStreetMapProvider (of RadMap), keep in mind that, it doesn't download the tile images on the file system, but storing them in memory.

Note that, I've deleted the duplicated post in the ImageEditor forum section.

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
bharathi
Top achievements
Rank 1
answered on 12 Nov 2019, 11:20 AM
Hi,

Thanks for your update. Yes. I am using RadMap control and find my code snippet.
<telerik:RadMap x:Name="radMap" ZoomLevel="1">
    <telerik:RadMap.Provider>
        <telerik:OpenStreetMapProvider />
    </telerik:RadMap.Provider>
</telerik:RadMap>

I am not clear on “Storing tiles in memory”. In which location, you are caching tiles and re-use while zooming and panning. If yes, is there option to store the tiles in the specified location as like dev-express caching tiles.?

https://documentation.devexpress.com/WPF/12205/Controls-and-Libraries/Map-Control/Examples/Map-Image-Data/How-to-Cache-Image-Tiles-Locally

Thanks,
0
bharathi
Top achievements
Rank 1
answered on 15 Nov 2019, 04:54 AM

Hi

 

Any update on this.?

0
Martin Ivanov
Telerik team
answered on 15 Nov 2019, 09:11 AM

Hello bharathi,

By store tiles in memory I meant that the tiles that should be displayed are downloaded and stored in the memory, rather than being accessed via a hard disk file, or a DB server, or similar. However, I was not completely correct here. Actually, you can enable tile images caching by setting the INsTileCachingEnabled property to True. In this case, the images are stored on the file system. More specifically, the AppData folder. The following special folder is used to construct the base file location - Environment.SpecialFolder.LocalApplicationData.

The path then looks like this: C:\Users\<username>\AppData\Local\TelerikMapCache\OpenStreetMapProvider\

You can customize the cache settings or replace it via the CacheStorage property of the OpenStreetMapProvider. By default the provider uses the FileStorageCache. You can also use IsolatedStorageCache and MemoryCache.

To replace the default path of the FileStorageCache, set its CachePath property. For example:

<telerik:OpenStreetMapProvider IsTileCachingEnabled="True">
	<telerik:OpenStreetMapProvider.CacheStorage>
		<telerik:FileSystemCache CachePath="C:\temp\OSMCache" />
	</telerik:OpenStreetMapProvider.CacheStorage>
</telerik:OpenStreetMapProvider>

Note that the cached files use fake extension that corresponds to their position. For example: *.9x0x1. To see the image, you can change the file's extension to .png.

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
bharathi
Top achievements
Rank 1
answered on 15 Nov 2019, 02:46 PM
Thanks you soo much.. Perfect answer.
Tags
Map
Asked by
bharathi
Top achievements
Rank 1
Answers by
bharathi
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or