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
e562f417
Commit
e562f417
authored
Jun 12, 2016
by
Don Gagne
Committed by
GitHub
Jun 12, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3545 from DonLakeFlyer/isSatellite
Fix isSatelliteMap determination
parents
065e3277
75203177
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
FlightMap.qml
src/FlightMap/FlightMap.qml
+1
-1
MapScale.qml
src/FlightMap/MapScale.qml
+1
-2
No files found.
src/FlightMap/FlightMap.qml
View file @
e562f417
...
...
@@ -32,7 +32,7 @@ Map {
id
:
_map
property
string
mapName
:
'
defaultMap
'
property
bool
isSatelliteMap
:
QGroundControl
.
flightMapSettings
.
mapType
==
"
Satellite
"
||
QGroundControl
.
flightMapSettings
.
mapType
==
"
Hybrid
"
property
bool
isSatelliteMap
:
activeMapType
.
name
.
indexOf
(
"
Satellite
"
)
>
-
1
||
activeMapType
.
name
.
indexOf
(
"
Hybrid
"
)
>
-
1
readonly
property
real
maxZoomLevel
:
20
property
variant
scaleLengths
:
[
5
,
10
,
25
,
50
,
100
,
150
,
250
,
500
,
1000
,
2000
,
5000
,
10000
,
20000
,
50000
,
100000
,
200000
,
500000
,
1000000
,
2000000
]
...
...
src/FlightMap/MapScale.qml
View file @
e562f417
...
...
@@ -24,8 +24,7 @@ Item {
property
variant
_scaleLengths
:
[
5
,
10
,
25
,
50
,
100
,
150
,
250
,
500
,
1000
,
2000
,
5000
,
10000
,
20000
,
50000
,
100000
,
200000
,
500000
,
1000000
,
2000000
]
property
bool
_isSatelliteMap
:
mapControl
.
activeMapType
.
name
.
indexOf
(
"
Satellite
"
)
>
-
1
||
mapControl
.
activeMapType
.
name
.
indexOf
(
"
Hybrid
"
)
>
-
1
property
var
_color
:
_isSatelliteMap
?
"
white
"
:
"
black
"
property
var
_color
:
mapControl
.
isSatelliteMap
?
"
white
"
:
"
black
"
function
formatDistance
(
meters
)
{
...
...
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