I am having a QML code which shows map, it has a MapQuickItem
for an image.
MapQuickItem {
id: transMarker
sourceItem: Image {
id: transImage
width: 50
height: 50
source: "trans.png"
}
}
When I clicks on the map, it should paste that image on the map, I could achieve that by below code
transMarker.coordinate = map.toCoordinate(Qt.point(mouse.x,mouse.y))
I want to save the position permanently, but the problem is I am trying to print map.toCoordinate(Qt.point(mouse.x,mouse.y))
It prints in degree and minutes (Coordinate: 8° 29' 21.4" N, 76° 57' 41.9" E)
I want to get that as decimal latitude and longitude (Coordinate: 76.9616344 8.4892798).
How this can be accomplished?