Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
300cd31c
Commit
300cd31c
authored
Apr 14, 2017
by
DonLakeFlyer
Browse files
Disable waypoint drag in Fly view
parent
0a745de8
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/FlightDisplay/FlightDisplayViewMap.qml
View file @
300cd31c
...
...
@@ -29,9 +29,11 @@ FlightMap {
mapName
:
_mapName
allowGCSLocationCenter
:
!
userPanned
allowVehicleLocationCenter
:
!
_keepVehicleCentered
planView
:
false
property
alias
scaleState
:
mapScale
.
state
// The following properties must be set by the consumer
property
var
missionController
property
var
geoFenceController
property
var
rallyPointController
...
...
src/FlightMap/FlightMap.qml
View file @
300cd31c
...
...
@@ -38,6 +38,7 @@ Map {
property
bool
allowVehicleLocationCenter
:
false
///< true: map will center/zoom to vehicle location one time
property
bool
firstGCSPositionReceived
:
false
///< true: first gcs position update was responded to
property
bool
firstVehiclePositionReceived
:
false
///< true: first vehicle position update was responded to
property
bool
planView
:
false
///< true: map being using for Plan view, items should be draggable
readonly
property
real
maxZoomLevel
:
20
...
...
src/PlanView/SimpleItemMapVisual.qml
View file @
300cd31c
...
...
@@ -62,7 +62,7 @@ Item {
Component.onCompleted
:
{
showItemVisuals
()
if
(
_missionItem
.
isCurrentItem
)
{
if
(
_missionItem
.
isCurrentItem
&&
map
.
planView
)
{
showDragArea
()
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment