Qt Location, Map Cache
-
Is there any example of mapping cache? I want to do, disk cache . I couldnt find any example related to this topic exactly
-
@suslucoder
on what platform?
On linux you can setXDG_CACHE_HOME
andXDG_DATA_HOME
environment variables. Which are actually interpreted byQStandardPaths::CacheLocation
And IIRC it is used by QtLocation to write the map cache. -
@raven-worx is it possible on windows?
-
@suslucoder
on windows there doesn't seem to be a generic way.About what map provider plugin are we talking here actually?
The here plugin provides an extra parameter to do what you want for example. Whereas the osm plugin doesn't. -
@raven-worx actually im searching a way to, run my map wihtout any ethernet connection. I think that cache a disk is a way for it
-
@suslucoder
you might be interested in this then:
https://www.qt.io/blog/2017/05/24/qtlocation-using-offline-map-tiles-openstreetmap-plugin -
@raven-worx thank you