Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtLocation offline map
Qt 6.11 is out! See what's new in the release blog

QtLocation offline map

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 3.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    akane
    wrote on last edited by
    #1

    Hi,

    I am interested in using the offline map with osm plugin (osm.mapping.offline.directory), and I found this blog post giving an example. The example does compile and run but does not work offline (works only online). I am using Qt 5.8 and I cannot find what I have done wrong since I just downloaded the example without modifying it ... Is there someone who tried to make the same example work or have an experience using the osm offline map ?

    Thanks

    1 Reply Last reply
    1
    • A Offline
      A Offline
      akane
      wrote on last edited by
      #2

      Ok, so I am replying myself but I found help on slack : I just needed to change the activeMapType to map.supportedMapTypes[2] instead of map.supportedMapTypes[0].

      M 1 Reply Last reply
      1
      • A akane

        Ok, so I am replying myself but I found help on slack : I just needed to change the activeMapType to map.supportedMapTypes[2] instead of map.supportedMapTypes[0].

        M Offline
        M Offline
        mkhtrmn
        wrote on last edited by
        #3

        Thanks a lot, your post is really helpful for me!

        @akane do you know why we have to change the activeMapType to map.supportedMapTypes[2] ? Because on the tiles filename, the map_id is 3

        1 Reply Last reply
        1
        • A Offline
          A Offline
          Anat
          wrote on last edited by
          #4

          Hi,

          I know it's been a while but my problem is related to the exact same thing...
          I'm using Qt 5.12 with QtLocation and qml, and want to display offline maps.
          BUT, I want to create my own map, based on an image file (tiff for example).
          I understand that I have to create a tiles folder. So I did. and managed to display tiles that were earlier saved to a cache folder of my choice.
          I've also managed to create a single tile cropped from my image.
          What I can't do is create the entire set of tiles from my image.
          I've tried QGis with different plugins, tried Mapnik and a few other methods that I read about,
          but none of them worked.

          Is there a working method for taking a map from an image file, and convert it to osm tiles?

          Thanks!

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved