Thread: [SailfishOS] Mapbox GL Native QML plugin
View Single Post
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#10
I have extended cache database handling API to support the expected scenario:
  • cache stored in application .cache folder
  • cache size limit set by user in settings

In practice, when defining MapboxMap, its sufficient to set

Code:
    cacheDatabaseStoreSettings: true
    cacheDatabaseDefaultPath: true
and define cacheDatabaseMaximalSize during a run of an application to the value you would want to. This value will be applied on the next start of the application (cache settings are applied only on start by QMapboxGL).

API documentation has been updated accordingly.

I am planning to start working on offline support for these vector tiles via OSM Scout Server. When issues/requests/ideas will come, I'll work on them as well.

Let me know in advance if you wish to use the plugin in practice, I'll upload it into OpenRepos when needed. There is no point in uploading it too early - there were changes almost daily so far in plugin code
 

The Following 2 Users Say Thank You to rinigus For This Useful Post: