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
为什么不让我有任何插件可用,我怎么能得到一个工作?