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. qml osm offline tiles
Forum Updated to NodeBB v4.3 + New Features

qml osm offline tiles

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 300 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.
  • F Offline
    F Offline
    finman
    wrote on last edited by
    #1

    Hello everyone. How do I implement an offline map. I tried to use the MS4W server, but it shows something wrong (even if i am delete the tiles directory(map folder) from the server), the application takes them from somewhere. My code is simple:

    import QtQuick 2.15
    import QtQuick.Window 2.15
    import QtLocation 5.12
    
    Window {
        width: 640
        height: 480
        visible: true
        title: qsTr("Hello World")
    
        Plugin {
            id: plugin_osm
            name: "osm"
            PluginParameter {
                name: "osm.mapping.custom.host"
                value: "http://127.0.0.1/map/"
            }
    
        }
    
        Map {
            id: map
            anchors.fill: parent
            plugin: plugin_osm
            zoomLevel: 1
            activeMapType: supportedMapTypes[supportedMapTypes.length - 1]
        }
    }
    

    files on the server:
    5abb9f80-c577-42ab-bc67-75e0941f7821-image.png

    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