-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.12.3
-
None
-
ubuntu16.04
hi.
i create a MapQuickItem component to show on map.
so i initialize MapQuickItem and show on map.without any problem.
when i change map coordinate MapQuickItem go to random places.
when i write below code map show me it is in right place but it isnot.
print(mapQuickItem.coordinate.latitude) print(mapQuickItem.coordinate.longitude)
i test place with marker and show correctly. so i am sure this is not my problem. i thinks this is map bug.
code is like this:
I set map plugins and so on currectly.
Rectangle {
property MapQuickItem mapQuickItem
//declare map
Map {
id: map
anchors.fill: parent
//set map plugin
plugin: mapPlugin
//set start of map position. in here i set iran
center: QtPositioning.coordinate(32 , 53)
}
//function call from some where
function createArea()
{
//i will correctly create MyMapQuickITem
var object = createDynamicObject("qrc:/qml/MapPage/MyMapQuickITem.qml")
object.coordinate: QtPositioning.coordinate(31, 53)
map.addMapItem(object)
mapQuickItem = object
}
}
so when i update mapQuickItem.coordinate it must be update. but it doesnt update.