onGeoTransportLatitudeChanged: {
map.center=QtPositioning.coordinate(root.geoTransportLatitude, root.geoTransportLongitude);
}
onGeoTransportLongitudeChanged: {
map.center=QtPositioning.coordinate(root.geoTransportLatitude, root.geoTransportLongitude);
}
Coordinate {
latitude: 55.7545
longitude: 37.6268
}
PositionSource {
id: positionSource
updateInterval: 1000
active: true
position: {
latitude: root.geoTransportLatitude
longitude: root.geoTransportLongitude
}
onPositionChanged: {
var coord = positionSource.position.coordinate;
console.log("Coordinate:", coord.longitude, coord.latitude);
}
}