Commit b691567d authored by Pierre TILAK's avatar Pierre TILAK

Fix Offline map name

parent 15340511
...@@ -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.enumStringValue + " " + _fmSettings.mapType.enumStringValue mapType = _fmSettings.mapProvider.value + " " + _fmSettings.mapType.value
resetMapToDefaults() resetMapToDefaults()
handleChanges() handleChanges()
_map.visible = true _map.visible = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment