summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2018-05-16 19:33:21 +0000
committercos <cos>2018-05-16 19:33:34 +0000
commit98bb58cfe505885d773d31c71efc5fc7e6eececb (patch)
treec8eafb83212d108d0467a2a2137226d67484cae6
parent1f52bb6406957124ec1bfd4da7af7216d78d99f5 (diff)
downloadRunnerUpLive-98bb58cfe505885d773d31c71efc5fc7e6eececb.zip
Convert speed without using non-reachable functionfix/openlayers
-rwxr-xr-xapi_openlayers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/api_openlayers.js b/api_openlayers.js
index 2383582..802c5da 100755
--- a/api_openlayers.js
+++ b/api_openlayers.js
@@ -164,7 +164,7 @@ function setMarker(p,i,posLen) {
'<div id="pbody">'+
((p.comments != null)?'<div id="pcomments">'+p.comments+'</div>':'')+
'<div id="pleft"><b>'+lang_time+':</b> '+p.dateAdded+'<br />'+
- ((p.speed != null)?'<b>'+lang_speed+':</b> '+(p.speed.toKmH()*factor_kmh)+' '+unit_kmh+'<br />':'')+
+ ((p.speed != null)?'<b>'+lang_speed+':</b> '+((p.speed)*Math.round(this*3600/10)/100*factor_kmh)+' '+unit_kmh+'<br />':'')+
((p.altitude != null)?'<b>'+lang_altitude+':</b> '+(p.altitude*factor_m).toFixed()+' '+unit_m+'<br />':'')+'</div>'+
((latest==0)?
('<div id="pright"><b>'+lang_ttime+':</b> '+p.totalSeconds.toHMS()+'<br />'+