8000 test adding an option to use country borderlines from a UN geojson dataset for geo subplots by archmoj · Pull Request #7327 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

test adding an option to use country borderlines from a UN geojson dataset for geo subplots #7327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
rename one of the two lonlat variables
  • Loading branch information
archmoj committed Dec 30, 2024
commit f958fcaffd0b2121878affd4e155b1aad4b301cb
8 changes: 4 additions & 4 deletions src/traces/scattergeo/hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ module.exports = function hoverPoints(pointData, xval, yval) {
var project = geo.project;

function distFn(d) {
var lonlat = d.lonlat;
var _lonlat = d.lonlat;

if(lonlat[0] === BADNUM) return Infinity;
if(isLonLatOverEdges(lonlat)) return Infinity;
if(_lonlat[0] === BADNUM) return Infinity;
if(isLonLatOverEdges(_lonlat)) return Infinity;

var pt = project(lonlat);
var pt = project(_lonlat);
var px = project([xval, yval]);
var dx = Math.abs(pt[0] - px[0]);
var dy = Math.abs(pt[1] - px[1]);
Expand Down
0