0
我試圖在QML 5.7中渲染一個空的Map
,以繪製地理定位多段線。然而,沒有插件可用來提供地圖數據:地圖插件顯示沒有服務提供商
Map {
anchors.fill:parent
plugin: Plugin {
name: "osm"
Component.onCompleted: console.log('a',availableServiceProviders.length)
}
MapPolyline {
line.color: "#299FE7"; line.width: 3
path: parent.points
}
Timer {
running:true; interval:1000
onTriggered: console.log('b',parent.supportedMapTypes.length)
}
}
以上輸出:
qml: a 0
qml: b 0
爲什麼不讓我有任何插件可用,我怎麼能得到一個工作?