File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ function refreshMarkers(markers) {
4242 var markerX = Math . floor ( marker . getLatLng ( ) . lng ) ;
4343 var markerY = Math . floor ( marker . getLatLng ( ) . lat ) ;
4444 var distanceToClick = Math . sqrt ( Math . pow ( ( clickX - markerX ) * scaleX , 2 ) + Math . pow ( ( clickY - markerY ) * scaleY , 2 ) ) ;
45- distanceToClick = Math . round ( distanceToClick * 3 ) ;
45+ distanceToClick = Math . round ( distanceToClick ) ;
4646 distanceToClick = distanceToClick + "m" ;
4747 var azimutFromClick = Math . atan2 ( ( clickX - markerX ) * scaleX , ( clickY - markerY ) * scaleY ) * 180 / Math . PI + 180 ;
4848 azimutFromClick = Math . round ( azimutFromClick ) ;
@@ -129,7 +129,7 @@ Papa.parse(mapPaths[selectedMap].heightmap, {
129129 distance = 'N/A' ;
130130 }
131131 document . getElementById ( 'height-info' ) . innerText = 'Height: ' + height + ' m' ;
132- document . getElementById ( 'distance-info' ) . innerText = 'Distance: ' + distance * 3 + ' m' ;
132+ document . getElementById ( 'distance-info' ) . innerText = 'Distance: ' + distance + ' m' ;
133133 } ) ;
134134
135135 // Store the lines of sight
You can’t perform that action at this time.
0 commit comments