height: panel.height
width: panel.width
- Image {
+ Button {
id: routeTo
- fillMode: Image.PreserveAspectFit
- width: parent.width
- source: "qrc:/res/images/route_to_cursor.png"
+ image: "qrc:/res/images/route_to_cursor.png"
+ width: height
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
- MouseArea {
- anchors.fill: parent
- onClicked: {
- console.log("clicked: Route to cursor")
- engine.routeFromTo(map.gpsLocationLatitude, map.gpsLocationLongitude, map.centerLatitude, map.centerLongitude);
- }
+ onButtonClicked: {
+ console.log("clicked: Route to cursor")
+ engine.routeFromTo(map.gpsLocationLatitude, map.gpsLocationLongitude, map.centerLatitude, map.centerLongitude);
}
}