only show waypoint description if provided
This commit is contained in:
@ -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}`;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user