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
47b25b13
Unverified
Commit
47b25b13
authored
Mar 14, 2018
by
Don Gagne
Committed by
GitHub
Mar 14, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6215 from DonLakeFlyer/LoadKMLMapMove
Reposition map after KML load
parents
98071529
9a4cb390
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
6 deletions
+3
-6
FlightDisplayViewMap.qml
src/FlightDisplay/FlightDisplayViewMap.qml
+1
-1
MapFitFunctions.qml
src/FlightMap/Widgets/MapFitFunctions.qml
+0
-4
QGCMapPolygonVisuals.qml
src/MissionManager/QGCMapPolygonVisuals.qml
+1
-0
PlanView.qml
src/PlanView/PlanView.qml
+1
-1
No files found.
src/FlightDisplay/FlightDisplayViewMap.qml
View file @
47b25b13
...
...
@@ -155,7 +155,7 @@ FlightMap {
}
MapFitFunctions
{
id
:
mapFitFunctions
id
:
mapFitFunctions
// The name for this id cannot be changed without breaking references outside of this code. Beware!
map
:
_flightMap
usePlannedHomePosition
:
false
planMasterController
:
_planMasterController
...
...
src/FlightMap/Widgets/MapFitFunctions.qml
View file @
47b25b13
...
...
@@ -90,10 +90,6 @@ Item {
}
function
addMissionItemCoordsForFit
(
coordList
)
{
var
homePosition
=
fitHomePosition
()
if
(
homePosition
.
isValid
)
{
coordList
.
push
(
homePosition
)
}
for
(
var
i
=
1
;
i
<
_missionController
.
visualItems
.
count
;
i
++
)
{
var
missionItem
=
_missionController
.
visualItems
.
get
(
i
)
if
(
missionItem
.
specifiesCoordinate
&&
!
missionItem
.
isStandaloneCoordinate
)
{
...
...
src/MissionManager/QGCMapPolygonVisuals.qml
View file @
47b25b13
...
...
@@ -180,6 +180,7 @@ Item {
fileExtension
:
"
kml
"
onAcceptedForLoad
:
{
mapPolygon
.
loadKMLFile
(
file
)
mapFitFunctions
.
fitMapViewportToMissionItems
()
close
()
}
}
...
...
src/PlanView/PlanView.qml
View file @
47b25b13
...
...
@@ -84,7 +84,7 @@ QGCView {
property
bool
_firstLoadComplete
:
false
MapFitFunctions
{
id
:
mapFitFunctions
id
:
mapFitFunctions
// The name for this id cannot be changed without breaking references outside of this code. Beware!
map
:
editorMap
usePlannedHomePosition
:
true
planMasterController
:
_planMasterController
...
...
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