Adding altitude.
Adding more locations.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user