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

7 posts, 0 answers
  1. bharathi
    bharathi avatar
    5 posts
    Member since:
    Oct 2019

    Posted 08 Nov Link to this post

    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,
  2. bharathi
    bharathi avatar
    5 posts
    Member since:
    Oct 2019

    Posted 10 Nov in reply to bharathi Link to this post

    Any update on this.?
  3. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2242 posts

    Posted 12 Nov Link to this post

    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.
  4. bharathi
    bharathi avatar
    5 posts
    Member since:
    Oct 2019

    Posted 12 Nov in reply to Martin Ivanov Link to this post

    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,
  5. bharathi
    bharathi avatar
    5 posts
    Member since:
    Oct 2019

    Posted 14 Nov in reply to bharathi Link to this post

    Hi

     

    Any update on this.?

  6. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2242 posts

    Posted 15 Nov Link to this post

    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.
  7. bharathi
    bharathi avatar
    5 posts
    Member since:
    Oct 2019

    Posted 15 Nov in reply to Martin Ivanov Link to this post

    Thanks you soo much.. Perfect answer.
Back to Top