add link amp mod range calculation to portal range
(it involves some guessing, as only 'rare' ones have been seen so far) alternative to #392 part of #374
This commit is contained in:
@ -8,8 +8,8 @@ window.getRangeText = function(d) {
|
||||
return ['range',
|
||||
'<a onclick="window.rangeLinkClick()">'
|
||||
+ (range > 1000
|
||||
? Math.round(range/1000) + ' km'
|
||||
: Math.round(range) + ' m')
|
||||
? Math.floor(range/1000) + ' km'
|
||||
: Math.floor(range) + ' m')
|
||||
+ '</a>'];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user