Results 1 to 18 of 18

Thread: QMapControl

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2007
    Location
    Berlin, Germany
    Posts
    17
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: QMapControl

    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.

  2. #2
    Join Date
    May 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QMapControl

    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.

  3. #3
    Join Date
    Sep 2007
    Location
    Berlin, Germany
    Posts
    17
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: QMapControl

    Correct

  4. #4
    Join Date
    Jan 2011
    Posts
    16
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QMapControl

    I would love to see something like this that works in a QGraphicsScene.

  5. #5
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QMapControl

    Hi,
    can I have a small example to display a raster static map ( tif file ) ?
    Regards
    Franco Amato

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.