Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Is it possible to prevent online fall backs fro Qt Location?

Is it possible to prevent online fall backs fro Qt Location?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmllocationmaposm
2 Posts 2 Posters 794 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.
  • D Offline
    D Offline
    dirtshell
    wrote on last edited by
    #1

    So according to the blog post recently about using offline tiles, online tile repositories will be queried in an attempt to resolve any tiles that can't be found locally or in the cache.

    tiles will be sourced from the specified directory before being searched in the tile cache, and, after that, being requested to the provider.

    I understand for most applications this is desired behavior, but for my application there are very strict controls over what should be shown to the user. In particular, no online resources at ALL should be used.

    Is there a way to disable this functionality? I have already tried using the parameters shown below, but it still populated with online tiles.

    Plugin {
        name: "osm"
        PluginParameter { name: 'osm.mapping.offline.directory'; value: ':/offline_tiles/'}
        PluginParameter { name: 'osm.mapping.providersrepository.address'; value: ''}
        PluginParameter { name: 'osm.mapping.custom.host'; value: ''}
        PluginParameter { name: 'osm.mapping.providersrepository.disabled'; value: true }
    }
    

    Any advice? There may be a way to accomplish this by rewriting the QGeoTileProviderOsm, but I don't know where I would even start to go about doing that, or how to point to it. Will I just have to write my own Plugin? I also don't know how I would go about doing that.

    Thanks for your time

    A 1 Reply Last reply
    0
    • D dirtshell

      So according to the blog post recently about using offline tiles, online tile repositories will be queried in an attempt to resolve any tiles that can't be found locally or in the cache.

      tiles will be sourced from the specified directory before being searched in the tile cache, and, after that, being requested to the provider.

      I understand for most applications this is desired behavior, but for my application there are very strict controls over what should be shown to the user. In particular, no online resources at ALL should be used.

      Is there a way to disable this functionality? I have already tried using the parameters shown below, but it still populated with online tiles.

      Plugin {
          name: "osm"
          PluginParameter { name: 'osm.mapping.offline.directory'; value: ':/offline_tiles/'}
          PluginParameter { name: 'osm.mapping.providersrepository.address'; value: ''}
          PluginParameter { name: 'osm.mapping.custom.host'; value: ''}
          PluginParameter { name: 'osm.mapping.providersrepository.disabled'; value: true }
      }
      

      Any advice? There may be a way to accomplish this by rewriting the QGeoTileProviderOsm, but I don't know where I would even start to go about doing that, or how to point to it. Will I just have to write my own Plugin? I also don't know how I would go about doing that.

      Thanks for your time

      A Offline
      A Offline
      aporto
      wrote on last edited by
      #2

      @dirtshell I know this is 7 years old now, but did you managed to solve this? I'm experiencing the same constraints in a new project.

      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