We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfMaps Offline with Local Map Files

Thread ID:

Created:

Updated:

Platform:

Replies:

148204 Oct 10,2019 12:47 AM UTC Jan 28,2021 07:08 AM UTC Xamarin.Forms 9
loading
Tags: SfMaps
Bryan S
Asked On October 10, 2019 12:47 AM UTC

Does the Xamarin Forms SfMap support loading map files from a local source when the device is offline?  I have access to mbtiles and osm map formats for offline use.

Vignesh Ramesh [Syncfusion]
Replied On October 10, 2019 01:49 PM UTC

Hi Bryan, 

Greetings from Syncfusion. 

We don't have support for the offline map by using the mbtiles file in SfMaps. We currently have support for OSM (default tile layer) and Bing map. This map will be downloaded from the online server and the tiles will be stored in the application cache. Next time, it will be referred from cache whether you are in online or offline. 

Regards, 
Vignesh. 


Bryan S
Replied On October 10, 2019 01:58 PM UTC

Hi Bryan, 

Greetings from Syncfusion. 

We don't have support for the offline map by using the mbtiles file in SfMaps. We currently have support for OSM (default tile layer) and Bing map. This map will be downloaded from the online server and the tiles will be stored in the application cache. Next time, it will be referred from cache whether you are in online or offline. 

Regards, 
Vignesh. 


Just to be clear, once we download the maps, they will be available after the device restarts even if it is offline?

Thanks

Rachel A [Syncfusion]
Replied On October 11, 2019 10:59 AM UTC

Hi Bryan, 
 
Thanks for your response. 
 
As we said in our previous update, the downloaded tile images were stored in the application cache. So, it remains there, until the app gets uninstalled. 
 
Regards, 
Rachel. 


Raul Duque
Replied On January 26, 2021 12:36 AM UTC

Hi,

I'm looking for open *.osm files and according to your comment, it is not possible.

It is not clear for me what do you refer as application cache where the tiles will be saved.

Muneesh Kumar G [Syncfusion]
Replied On January 26, 2021 12:40 PM UTC

Hi Raul Duque, 
 
We have analyzed your query and we suspect that you like to use some other online map providers in our SfMaps. You can achieve this by using solution available in below link.  
 
 
 
If your requirement different from this, please give more details about your requirement that will be helpful for us to give better solution in this.  
 
And would like to clarify that application cache is created in application installed location. Once the data downloaded from server, it will be stored in this location, and then the data will be used from this cache location.  
 
Thanks,  
Muneesh Kumar G 
 


Raul Duque
Replied On January 26, 2021 01:03 PM UTC

Thank you Muneesh,

Yes, I want to use OpenStreet provider but my scenario is sometimes the device won't have access to the internet so online maps won't available however, the usage will be limited to a specific zone so the idea is to have the map for usage offline.

Regards,

Raúl

Sridevi Sivakumar [Syncfusion]
Replied On January 27, 2021 07:10 AM UTC

Hi  Raul Duque,

We can show the imagery layer map in offline mode by setting CanCacheTiles property of ImageryLayer as 
true to store tiles in the local cache (application memory). Once the tiles are downloaded from the map provider server, tiles will be rendered from the stored cache

Please refer the below help document link for more information.

https://help.syncfusion.com/xamarin/maps/mapsprovider#cache-a-tile-images-in-application-memory

Regards,

Sridevi S.
 
 


Raul Duque
Replied On January 27, 2021 01:47 PM UTC

Thank you Sridevi

Sridevi Sivakumar [Syncfusion]
Replied On January 28, 2021 07:08 AM UTC

Hi Raul Duque,

Thanks for your update.

Let us know if you need any further assistance.

Regards, 
Sridevi S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon