Adding altitude.
Adding more locations.
This commit is contained in:
parent
11584e5a26
commit
4130b0cf1b
20
locations/Ochagavía.json
Normal file
20
locations/Ochagavía.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "Ochagavía",
|
||||
"altitude": 764,
|
||||
"bus": true,
|
||||
"train": false,
|
||||
"pharmacy": true,
|
||||
"smoke": true,
|
||||
"supermarkets": [
|
||||
{
|
||||
"type": "COVIRAN",
|
||||
"url": "https://goo.gl/maps/fqWMJyHj9SrNZkBEA"
|
||||
},
|
||||
{
|
||||
"type": "COALIMENT",
|
||||
"url": "https://goo.gl/maps/gQ78eAAS43dqWMUW9"
|
||||
}
|
||||
],
|
||||
"pool": true,
|
||||
"gym": false
|
||||
}
|
32
locations/Sangüesa.json
Normal file
32
locations/Sangüesa.json
Normal file
@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "Sangüesa",
|
||||
"altitude": 404,
|
||||
"bus": true,
|
||||
"train": false,
|
||||
"pharmacy": true,
|
||||
"smoke": true,
|
||||
"supermarkets": [
|
||||
{
|
||||
"type": "BM",
|
||||
"url": "https://goo.gl/maps/GvwtpFsT3TD25w7g7"
|
||||
},
|
||||
{
|
||||
"type": "COVIRAN",
|
||||
"url": "https://goo.gl/maps/AbVahZ5DtMjkYrS26"
|
||||
},
|
||||
{
|
||||
"type": "EROSKI",
|
||||
"url": "https://goo.gl/maps/Z5WdBxcDrjUKKAWf7"
|
||||
},
|
||||
{
|
||||
"type": "DIA",
|
||||
"url": "https://goo.gl/maps/KNeX8T9YPwtnphyn6"
|
||||
},
|
||||
{
|
||||
"type": "UNIDE",
|
||||
"url": "https://goo.gl/maps/oRHcLmLDNHkv6hV17"
|
||||
}
|
||||
],
|
||||
"pool": true,
|
||||
"gym": true
|
||||
}
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user