I try to upgrade Qt 5.6 project up to 5.7 and get some trouble with QML Map. I have a simple project with such code:
Plugin {
id: myPlugin
name: "osm"
PluginParameter {
name: "osm.mapping.host";
value: "http://a.tile.openstreetmap.org/"
}
}
Map {
id: map
anchors.fill: parent
plugin: myPlugin;
center: QtPositioning.coordinate(55.7512, 37.6175)
zoomLevel: 12
activeMapType: map.supportedMapTypes[6] //some magic to work
}
It works in 5.6 - I have all spots on map wich I define as QtPositioning.coordinate()
. And it works in 5.7 too - with all my spots, except one thing - in 5.7 my map starts in the middle of Africa instead of coordinates I pointed at Map.center
.
I tried running example from QtCreator - it had the same problem. So, I'd be glad to any advice.