Skip to content

Commit

Permalink
Add mission mapControl property setting
Browse files Browse the repository at this point in the history
  • Loading branch information
DonLakeFlyer committed Jun 22, 2018
1 parent 33be72d commit c924bfc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MissionManager/QGCMapPolygonVisuals.qml
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ Item {

MissionItemIndicatorDrag {
id: dragArea
mapControl: _root.mapControl
z: _zorderDragHandle
visible: !_circle

Expand Down Expand Up @@ -447,6 +448,7 @@ Item {
id: centerDragAreaComponent

MissionItemIndicatorDrag {
mapControl: _root.mapControl
z: _zorderCenterHandle
onItemCoordinateChanged: mapPolygon.center = itemCoordinate
onDragStart: mapPolygon.centerDrag = true
Expand Down
1 change: 1 addition & 0 deletions src/MissionManager/QGCMapPolylineVisuals.qml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ Item {
id: dragAreaComponent

MissionItemIndicatorDrag {
mapControl: _root.mapControl
id: dragArea
z: _zorderDragHandle

Expand Down
2 changes: 2 additions & 0 deletions src/PlanView/FWLandingPatternMapVisual.qml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ Item {
id: loiterDragAreaComponent

MissionItemIndicatorDrag {
mapControl: _root.map
itemIndicator: _itemVisuals[_loiterPointIndex]
itemCoordinate: _missionItem.loiterCoordinate

Expand All @@ -188,6 +189,7 @@ Item {
id: landDragAreaComponent

MissionItemIndicatorDrag {
mapControl: _root.map
itemIndicator: _itemVisuals[_landPointIndex]
itemCoordinate: _missionItem.landingCoordinate

Expand Down
1 change: 1 addition & 0 deletions src/PlanView/RallyPointMapVisuals.qml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Item {
id: dragAreaComponent

MissionItemIndicatorDrag {
mapControl: _root.map
itemCoordinate: rallyPointObject.coordinate
visible: rallyPointObject === myRallyPointController.currentRallyPoint

Expand Down
1 change: 1 addition & 0 deletions src/PlanView/SimpleItemMapVisual.qml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Item {
id: dragAreaComponent

MissionItemIndicatorDrag {
mapControl: _root.map
itemIndicator: _itemVisual
itemCoordinate: _missionItem.coordinate

Expand Down

0 comments on commit c924bfc

Please sign in to comment.