Hi,

15.10.2014, 22:57, Kim Foder kirjoitti:
Im the QML file I have implemented the as follows:

             Map {
                 id: map
                 enabled: true
                 anchors.fill: parent // parent is for test purposes
                                     // 400 * 400 pixels
                 center: QtPositioning.coordinate(55,10)
                 zoomLevel: 7
                 Plugin {
                   id: plugin
                   allowExperimental: true
                   preferred: ["osm"]
                   required.mapping: Plugin.AnyMappingFeatures
                   required.geocoding: Plugin.AnyGeocodingFeatures
                 }
             }

Any ideas?

You need to assign the plugin to the plugin property. And it should be enough to just give the name parameter. Try

Map {
    ...
    plugin: Plugin { name: "osm" }
}

Also, you might need to set the zoom level under onCompleted.

https://bugreports.qt-project.org/browse/QTBUG-40779

--
Osmo Salomaa <otsal...@iki.fi>
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to