aboutsummaryrefslogtreecommitdiff
path: root/src/MainMapView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/MainMapView.qml')
-rw-r--r--src/MainMapView.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/MainMapView.qml b/src/MainMapView.qml
index 00f0ef2..3254611 100644
--- a/src/MainMapView.qml
+++ b/src/MainMapView.qml
@@ -30,7 +30,10 @@ Item {
id: waypointSource
key: "/map/waypointList"
defaultValue: ""
- onValueChanged: mapView.updateWaypoints()
+ onValueChanged: {
+ mapView.updateWaypoints()
+ console.log("value changed")
+ }
Component.onCompleted: mapView.updateWaypoints()
}
@@ -66,6 +69,7 @@ Item {
}
property MapQuickItem mapItem
function updateWaypoints() {
+ console.log("waypoints updated")
var waypointsList = waypointSource.value.split(">")
for(var i = 0, size = waypointsList.length-1; i < size ; i++){
var currWaypointData = waypointsList[i].split(";")