Browse Source

Fix Offline map name

QGC4.4
Pierre TILAK 6 years ago
parent
commit
b691567d78
  1. 4
      src/QtLocationPlugin/QMLControl/OfflineMap.qml

4
src/QtLocationPlugin/QMLControl/OfflineMap.qml

@ -93,10 +93,8 @@ Item { @@ -93,10 +93,8 @@ Item {
function updateMap() {
for (var i = 0; i < _map.supportedMapTypes.length; i++) {
console.log(_map.supportedMapTypes[i].name, i)
if (mapType === _map.supportedMapTypes[i].name) {
_map.activeMapType = _map.supportedMapTypes[i]
console.log("Update Map:" + " " + _map.activeMapType)
handleChanges()
return
}
@ -105,7 +103,7 @@ Item { @@ -105,7 +103,7 @@ Item {
function addNewSet() {
isMapInteractive = true
mapType = _fmSettings.mapProvider.enumStringValue + " " + _fmSettings.mapType.enumStringValue
mapType = _fmSettings.mapProvider.value + " " + _fmSettings.mapType.value
resetMapToDefaults()
handleChanges()
_map.visible = true

Loading…
Cancel
Save