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
8c25ed96
Commit
8c25ed96
authored
May 05, 2015
by
Gus Grubba
Browse files
Merge pull request #1535 from dogmaphobic/moreMapping
Adding the ability to add a waypoint.
parents
cae09765
f17543c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/qmlcommon/QGCMapBackground.qml
View file @
8c25ed96
...
...
@@ -192,7 +192,7 @@ Item {
/*
// There is a bug currently in Qt where it fails to render a map taller than 6 tiles high. Until
// that's fixed, we can't rotate the map as it would require a larger map, which can eas
e
ly grow
// that's fixed, we can't rotate the map as it would require a larger map, which can eas
i
ly grow
// larger than 6 tiles high.
// https://bugreports.qt.io/browse/QTBUG-45508
transform: Rotation {
...
...
@@ -214,6 +214,16 @@ Item {
scaleTimer
.
restart
()
}
MouseArea
{
anchors.fill
:
parent
onDoubleClicked
:
{
var
coord
=
map
.
toCoordinate
(
Qt
.
point
(
mouse
.
x
,
mouse
.
y
));
map
.
addMarker
(
coord
,
polyLine
.
path
.
length
);
polyLine
.
addCoordinate
(
coord
);
map
.
changed
=
true
;
}
}
function
updateMarker
(
coord
,
wpid
)
{
if
(
wpid
<
polyLine
.
path
.
length
)
{
...
...
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