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. Use an offline interactive OpenStreetMap in QML
Forum Updated to NodeBB v4.3 + New Features

Use an offline interactive OpenStreetMap in QML

Scheduled Pinned Locked Moved Unsolved General and Desktop
openstreetmapsoffline
2 Posts 2 Posters 1.6k Views 1 Watching
  • 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.
  • Gregoire BorelG Offline
    Gregoire BorelG Offline
    Gregoire Borel
    wrote on last edited by Gregoire Borel
    #1

    I'd like to inject a chunk of map that I got from OpenStreetMap under the form of an osm file.

    From what I've read in the documentation, the Open Street Map Plugin doesn't seem to have any parameter taking a source file as a map. It only works with a server. Problem is I won't have an Internet connection when running my application. I need to use a map internally.

    Ditto for Mapbox and HERE plugins.

    Is there any other way to do this?

    Here is the boilerplate to create a Map:

    Plugin {
        id: somePlugin
        // code here to choose the plugin as necessary
    }
    
    Map {
        id: map
    
        plugin: somePlugin
    
        center {
            latitude: -27
            longitude: 153
        }
        zoomLevel: map.minimumZoomLevel
    
        gesture.enabled: true
    }
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You'll most likely need to implement an offline mode for the plugins or implement an offline version of the plugins.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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