QML OSM地图上的传输层

时间:2018-07-10 09:10:49

标签: qt qml openstreetmap

如何在qml中更改transport layer上的默认osm地图图层:

    Plugin {
        id: mapPlugin
        name: "osm"
         PluginParameter {
             name: "osm.mapping.host";
             value: "http://a.tile.openstreetmap.org/"
         }
    }

    Map {
        anchors.fill: parent
        plugin: mapPlugin
        center: QtPositioning.coordinate(59.91, 10.75) // Oslo
        zoomLevel: 14
    }

0 个答案:

没有答案