Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
026d1c4712
|
|||
|
6bd55843bb
|
|||
|
33a6469a19
|
@@ -67,6 +67,11 @@ export default class PlaceDetails extends Component {
|
|||||||
return this.place.url || this.tags.website || this.tags['contact:website'];
|
return this.place.url || this.tags.website || this.tags['contact:website'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get websiteDomain() {
|
||||||
|
const url = new URL(this.website);
|
||||||
|
return url.hostname;
|
||||||
|
}
|
||||||
|
|
||||||
get openingHours() {
|
get openingHours() {
|
||||||
return this.tags.opening_hours;
|
return this.tags.opening_hours;
|
||||||
}
|
}
|
||||||
@@ -106,6 +111,10 @@ export default class PlaceDetails extends Component {
|
|||||||
return `https://www.openstreetmap.org/${type}/${id}`;
|
return `https://www.openstreetmap.org/${type}/${id}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get gmapsUrl() {
|
||||||
|
return `https://www.google.com/maps/search/?api=1&query=${this.name}&query=${this.place.lat},${this.place.lon}`;
|
||||||
|
}
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="place-details">
|
<div class="place-details">
|
||||||
<h3>{{this.name}}</h3>
|
<h3>{{this.name}}</h3>
|
||||||
@@ -129,6 +138,7 @@ export default class PlaceDetails extends Component {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="meta-info">
|
<div class="meta-info">
|
||||||
|
|
||||||
{{#if this.cuisine}}
|
{{#if this.cuisine}}
|
||||||
<p>
|
<p>
|
||||||
<strong>Cuisine:</strong>
|
<strong>Cuisine:</strong>
|
||||||
@@ -153,7 +163,7 @@ export default class PlaceDetails extends Component {
|
|||||||
{{#if this.website}}
|
{{#if this.website}}
|
||||||
<p class="content-with-icon">
|
<p class="content-with-icon">
|
||||||
<Icon @name="globe" @title="Website" />
|
<Icon @name="globe" @title="Website" />
|
||||||
<span><a href={{this.website}} target="_blank" rel="noopener noreferrer">Website</a></span>
|
<span><a href={{this.website}} target="_blank" rel="noopener noreferrer">{{this.websiteDomain}}</a></span>
|
||||||
</p>
|
</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
@@ -164,7 +174,8 @@ export default class PlaceDetails extends Component {
|
|||||||
</p>
|
</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<hr class="meta-divider">
|
</div>
|
||||||
|
<div class="meta-info">
|
||||||
|
|
||||||
{{#if this.address}}
|
{{#if this.address}}
|
||||||
<p class="content-with-icon">
|
<p class="content-with-icon">
|
||||||
@@ -192,6 +203,16 @@ export default class PlaceDetails extends Component {
|
|||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
<p class="content-with-icon">
|
||||||
|
<Icon @name="map" @title="OSM ID" />
|
||||||
|
<span>
|
||||||
|
<a href={{this.gmapsUrl}} target="_blank" rel="noopener noreferrer">
|
||||||
|
Google Maps
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -124,7 +124,6 @@ export default class PlacesSidebar extends Component {
|
|||||||
class="back-btn"
|
class="back-btn"
|
||||||
{{on "click" this.clearSelection}}
|
{{on "click" this.clearSelection}}
|
||||||
>←</button>
|
>←</button>
|
||||||
<h2>Details</h2>
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<h2>Nearby Places</h2>
|
<h2>Nearby Places</h2>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|||||||
@@ -23,7 +23,8 @@ export default class OsmService extends Service {
|
|||||||
out center;
|
out center;
|
||||||
`.trim();
|
`.trim();
|
||||||
|
|
||||||
const url = `https://overpass-api.de/api/interpreter?data=${encodeURIComponent(
|
const url = `https://overpass.bke.ro/api/interpreter?data=${encodeURIComponent(
|
||||||
|
// const url = `https://overpass-api.de/api/interpreter?data=${encodeURIComponent(
|
||||||
query
|
query
|
||||||
)}`;
|
)}`;
|
||||||
|
|
||||||
|
|||||||
@@ -97,6 +97,10 @@ body {
|
|||||||
.place-details .place-description {
|
.place-details .place-description {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.place-details .actions {
|
||||||
|
padding-bottom: 0.3rem;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-primary {
|
.btn-primary {
|
||||||
background: #007bff;
|
background: #007bff;
|
||||||
color: white;
|
color: white;
|
||||||
@@ -149,13 +153,16 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.meta-info {
|
.meta-info {
|
||||||
margin-top: 1.5rem;
|
|
||||||
padding-top: 1rem;
|
|
||||||
border-top: 1px solid #eee;
|
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.meta-info p:first-child {
|
||||||
|
margin-top: 1.2rem;
|
||||||
|
padding-top: 1.2rem;
|
||||||
|
border-top: 1px solid #eee;
|
||||||
|
}
|
||||||
|
|
||||||
.meta-info p {
|
.meta-info p {
|
||||||
margin: 0.75rem 0;
|
margin: 0.75rem 0;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
@@ -169,18 +176,13 @@ body {
|
|||||||
.meta-info a {
|
.meta-info a {
|
||||||
color: #007bff;
|
color: #007bff;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
padding-bottom: 4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.meta-info a:hover {
|
.meta-info a:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.meta-divider {
|
|
||||||
border: 0;
|
|
||||||
border-top: 1px dashed #ddd;
|
|
||||||
margin: 1rem 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Map Search Pulse Animation */
|
/* Map Search Pulse Animation */
|
||||||
.search-pulse {
|
.search-pulse {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "marco",
|
"name": "marco",
|
||||||
"version": "1.4.1",
|
"version": "1.4.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Small description for marco goes here",
|
"description": "Small description for marco goes here",
|
||||||
"repository": "",
|
"repository": "",
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
release/assets/main-_X0dk-zm.css
Normal file
1
release/assets/main-_X0dk-zm.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -6,8 +6,8 @@
|
|||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
<script type="module" crossorigin src="/assets/main-DXDcwTAg.js"></script>
|
<script type="module" crossorigin src="/assets/main-C6x36ClG.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/main-B-vHK2y6.css">
|
<link rel="stylesheet" crossorigin href="/assets/main-_X0dk-zm.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user