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. QML OSM Map Not working in System which is not having QTCreator but having all the installed Qt Library .
Forum Updated to NodeBB v4.3 + New Features

QML OSM Map Not working in System which is not having QTCreator but having all the installed Qt Library .

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 42 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.
  • K Offline
    K Offline
    KRHC
    wrote on last edited by KRHC
    #1

    I have a QML Map Application which is working fine in machine having QT creator But System which is not having qt Creator but all the necessaory lib are installed in that same QML MAP Application is not loading map.

    import QtQuick 2.15
    import QtQuick.Window 2.15
    import QtLocation 5.15
    import QtPositioning 5.15
    import MapTools 1.0

    Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Hello World")
    Plugin {
    id: osmPlugin
    name: "osm"
    PluginParameter {
    name: "osm.mapping.providersrepository.disabled"
    value: true
    }
    PluginParameter {
    name: "osm.mapping.custom.host"
    value: "http://tile.openstreetmap.org"
    }
    PluginParameter {
    name: "osm.mapping.custom.tilesize"
    value: 0
    }
    PluginParameter {
    name: "osm.mapping.custom.maxzoom"
    value: 18
    }
    PluginParameter {
    name: "osm.mapping.custom.minzoom"
    value: 1
    }
    PluginParameter {
    name: "osm.network.timeout"
    value: "3000"
    }
    PluginParameter{
    name: "osm.network.retryAttempts"
    value: "10"
    }

        PluginParameter {
            name: "osm.mapping.cache.directory"
            value: "/tmp/qt-map-cache"
        }
    }
    
    Map {
        id:map
        anchors.fill: parent
        plugin: osmPlugin
        center: QtPositioning.coordinate(19.0760, 72.8777) // San Francisco
        zoomLevel: 10
       
    }
    

    }

    I have Set the path as well .
    Geoservices folder contains OSMGeoservies file as well

    one strange behavior i saw if we run 1st time it will not show map 2nd time when run show 2nd tile .

    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