Hello. Vey intersting project, i'm really want to use it in my application, but i want to know is it possible to use Map tiles which stored lacaly, i'm only intersting OpenStreetMap.
If possible how to do it?
Hello. Vey intersting project, i'm really want to use it in my application, but i want to know is it possible to use Map tiles which stored lacaly, i'm only intersting OpenStreetMap.
If possible how to do it?
Hi Migel,
you can use the function enablePersistentCache to store map tiles locally. But there is currently no script to initialize the cache with a map region automatically. So you have to browse manually through the area which you want to be cached.
Thank you for answer, is it i'm right to understand i can download osm file area which i want to use (for example Moscow Region, Russia) from openstreetmap and after that load it use enablePersistentCache?
Or first time i conecting with server and after that i'll cache region which are intersting for me, and in next start application i can load it from cache
//! Enable persistent caching of map tiles
/*!
* Call this method to allow the QMapControl widget to save map tiles
* persistent (also over application restarts).
* Tiles are stored in the subdirectory "QMapControl.cache" within the
* user's home directory. This can be changed by giving a path.
* @param path the path to the cache directory
*/
void enablePersistentCache ( const QDir& path=QDir::homePath() + "/QMapControl.cache" );
Last edited by migel1976; 30th May 2010 at 12:17.
Correct![]()
I would love to see something like this that works in a QGraphicsScene.
Hi,
can I have a small example to display a raster static map ( tif file ) ?
Regards
Franco Amato
Bookmarks