Skip to content

Commit f958fca

Browse files
committed
rename one of the two lonlat variables
1 parent 03a6b84 commit f958fca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/traces/scattergeo/hover.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ module.exports = function hoverPoints(pointData, xval, yval) {
1818
var project = geo.project;
1919

2020
function distFn(d) {
21-
var lonlat = d.lonlat;
21+
var _lonlat = d.lonlat;
2222

23-
if(lonlat[0] === BADNUM) return Infinity;
24-
if(isLonLatOverEdges(lonlat)) return Infinity;
23+
if(_lonlat[0] === BADNUM) return Infinity;
24+
if(isLonLatOverEdges(_lonlat)) return Infinity;
2525

26-
var pt = project(lonlat);
26+
var pt = project(_lonlat);
2727
var px = project([xval, yval]);
2828
var dx = Math.abs(pt[0] - px[0]);
2929
var dy = Math.abs(pt[1] - px[1]);

0 commit comments

Comments
 (0)