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
b691567d
Commit
b691567d
authored
Sep 17, 2019
by
Pierre TILAK
Browse files
Fix Offline map name
parent
15340511
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/QtLocationPlugin/QMLControl/OfflineMap.qml
View file @
b691567d
...
@@ -93,10 +93,8 @@ Item {
...
@@ -93,10 +93,8 @@ Item {
function
updateMap
()
{
function
updateMap
()
{
for
(
var
i
=
0
;
i
<
_map
.
supportedMapTypes
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
_map
.
supportedMapTypes
.
length
;
i
++
)
{
console
.
log
(
_map
.
supportedMapTypes
[
i
].
name
,
i
)
if
(
mapType
===
_map
.
supportedMapTypes
[
i
].
name
)
{
if
(
mapType
===
_map
.
supportedMapTypes
[
i
].
name
)
{
_map
.
activeMapType
=
_map
.
supportedMapTypes
[
i
]
_map
.
activeMapType
=
_map
.
supportedMapTypes
[
i
]
console
.
log
(
"
Update Map:
"
+
"
"
+
_map
.
activeMapType
)
handleChanges
()
handleChanges
()
return
return
}
}
...
@@ -105,7 +103,7 @@ Item {
...
@@ -105,7 +103,7 @@ Item {
function
addNewSet
()
{
function
addNewSet
()
{
isMapInteractive
=
true
isMapInteractive
=
true
mapType
=
_fmSettings
.
mapProvider
.
enumStringV
alue
+
"
"
+
_fmSettings
.
mapType
.
enumStringV
alue
mapType
=
_fmSettings
.
mapProvider
.
v
alue
+
"
"
+
_fmSettings
.
mapType
.
v
alue
resetMapToDefaults
()
resetMapToDefaults
()
handleChanges
()
handleChanges
()
_map
.
visible
=
true
_map
.
visible
=
true
...
...
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