only show waypoint description if provided
This commit is contained in:
parent
f8fc4ad3e1
commit
8ff999b236
1 changed files with 1 additions and 1 deletions
|
|
@ -1553,7 +1553,7 @@
|
||||||
function getTooltipContentForWaypoint(waypoint) {
|
function getTooltipContentForWaypoint(waypoint) {
|
||||||
|
|
||||||
var tooltip = `<b>${waypoint.name}</b>` +
|
var tooltip = `<b>${waypoint.name}</b>` +
|
||||||
`<br/>${waypoint.description}` +
|
(waypoint.description ? `<br/>${waypoint.description}` : '') +
|
||||||
`<br/><br/>Expires: ${moment(new Date(waypoint.expire * 1000)).fromNow()}` +
|
`<br/><br/>Expires: ${moment(new Date(waypoint.expire * 1000)).fromNow()}` +
|
||||||
`<br/>Lat/Lng: ${waypoint.latitude}, ${waypoint.longitude}`;
|
`<br/>Lat/Lng: ${waypoint.latitude}, ${waypoint.longitude}`;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue