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
QtWS25 Last Chance

Use an offline interactive OpenStreetMap in QML

Scheduled Pinned Locked Moved Unsolved General and Desktop
openstreetmapsoffline
2 Posts 2 Posters 1.6k 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.
  • G Offline
    G Offline
    Gregoire Borel
    wrote on 15 Apr 2016, 15:54 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 15 Apr 2016, 20:55 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

      2/2

      15 Apr 2016, 20:55

      • Login

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