Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
a831deaa
Commit
a831deaa
authored
Mar 22, 2017
by
Donald Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Initial survey polygon smaller each time you add a survey
parent
1e0e8d4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
GeoFenceMapVisuals.qml
src/MissionEditor/GeoFenceMapVisuals.qml
+1
-1
SurveyMapVisual.qml
src/MissionEditor/SurveyMapVisual.qml
+3
-1
No files found.
src/MissionEditor/GeoFenceMapVisuals.qml
View file @
a831deaa
...
...
@@ -146,7 +146,7 @@ Item {
border.width
:
2
border.color
:
"
orange
"
color
:
"
transparent
"
center
:
homePosition
?
homePosition
:
undefined
center
:
homePosition
?
homePosition
:
QtPositioning
.
coordinate
()
radius
:
myGeoFenceController
.
circleRadius
visible
:
planView
||
geoFenceController
.
circleEnabled
}
...
...
src/MissionEditor/SurveyMapVisual.qml
View file @
a831deaa
...
...
@@ -72,11 +72,13 @@ Item {
function
_addInitialPolygon
()
{
if
(
_missionItem
.
polygonPath
.
length
<
3
)
{
// Initial polygon is inset to take 2/3rds space
var
rect
=
map
.
centerViewport
var
rect
=
Qt
.
rect
(
map
.
centerViewport
.
x
,
map
.
centerViewport
.
y
,
map
.
centerViewport
.
width
,
map
.
centerViewport
.
height
)
console
.
log
(
map
.
centerViewport
)
rect
.
x
+=
(
rect
.
width
*
0.25
)
/
2
rect
.
y
+=
(
rect
.
height
*
0.25
)
/
2
rect
.
width
*=
0.75
rect
.
height
*=
0.75
console
.
log
(
map
.
centerViewport
)
var
topLeft
=
Qt
.
point
(
rect
.
x
,
rect
.
y
)
var
topRight
=
Qt
.
point
(
rect
.
x
+
rect
.
width
,
rect
.
y
)
var
bottomLeft
=
Qt
.
point
(
rect
.
x
,
rect
.
y
+
rect
.
height
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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