Skip to content

Commit

Permalink
fix map
Browse files Browse the repository at this point in the history
  • Loading branch information
papizzo committed Feb 7, 2024
1 parent d1a52d4 commit 11082ac
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 26 deletions.
3 changes: 0 additions & 3 deletions terra-frontend/src/components/mixins/mapInfo.mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default {
this.isInfo = false
},
localizeMain(mainInfo, isItalian) {
//let mainInfoItalian = []
console.log(isItalian)
for (var info of mainInfo) {
switch (info["Year"]) {
Expand All @@ -52,9 +51,7 @@ export default {
info["Year"] = this.$t("map.info.information.export")
break
}
//mainInfoItalian.push(info)
}
//return isItalian ? mainInfoItalian : mainInfo
return mainInfo
}
}
Expand Down
2 changes: 1 addition & 1 deletion terra-frontend/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
},
"info": {
"tab":{
"main":"Main",
"main":"Main Information",
"import_partner": "Import partners",
"export_partner": "Export partners"
},
Expand Down
2 changes: 1 addition & 1 deletion terra-frontend/src/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
},
"info": {
"tab": {
"main": "Dati macro",
"main": "Informazioni principali",
"import_partner": "Partner di importazione",
"export_partner": "Partner di esportazione"
},
Expand Down
15 changes: 0 additions & 15 deletions terra-frontend/src/store/modules/geomap/geomap.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,6 @@ const actions = {
return geomapService
.findByName(name)
.then((data) => {
/*for (const key in data[0]) {
if (key != "Country_Code") {
data[0][key].forEach((obj) => {
for (const key in obj) {
console.log(obj[key]);
var val = obj[key]
if (typeof val === "number") {
obj[key] = val.toLocaleString("en-US")
} else {
obj[key] = val.substring(0, 100) + "."
}
}
})
}
}*/
commit("SET_INFO", data)
})
.catch((err) => {
Expand Down
6 changes: 0 additions & 6 deletions terra-frontend/src/views/map/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,6 @@ export default {
}
return this.infoData ? this.infoData[0]["Main Export Partners"] : []
},
//importGoods() {
// return this.infoData ? this.infoData[0]["Main Import Goods"] : []
//},
//exportGoods() {
// return this.infoData ? this.infoData[0]["Main Export Goods"] : []
//},
options() {
return {
onEachFeature: this.onEachFeatureFunction
Expand Down

0 comments on commit 11082ac

Please sign in to comment.