QML OSM Map Not working in System which is not having QTCreator but having all the installed Qt Library .
-
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.0Window {
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 wellone strange behavior i saw if we run 1st time it will not show map 2nd time when run show 2nd tile .