Adding altitude.

Adding more locations.
This commit is contained in:
2022-10-17 01:36:55 +02:00
parent 11584e5a26
commit 4130b0cf1b
3 changed files with 59 additions and 3 deletions

View File

@ -180,9 +180,13 @@ export default class ItemHTML {
}
static _createLocationName(item) {
let html = `<div>`
html += this._createNeutral(item.locationName);
if (item.location?.altitude) this._createIndividual('Altitud (m):', item.location.altitude);
let html = `<div class='information'>`
if (item.location?.name) {
html += this._createNeutral(item.location.name);
} else {
html += this._createNeutral(item.locationName);
}
if (item.location?.altitude) html += this._createIndividual('Altitud (m):', item.location.altitude);
html += `</div>`
return html;