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
Closed
Prev Previous commit
Next Next commit
handle empty
  • Loading branch information
archmoj committed Dec 30, 2024
commit e569d43d7d1b2d9397dd461dabfdacc719ce2307
1 change: 1 addition & 0 deletions src/components/drawing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1775,6 +1775,7 @@ function getMarkerAngle(d, trace) {
}

if(trace._geo) {
if(!d.latlon) return null;
var lon = d.lonlat[0];
var lat = d.lonlat[1];

Expand Down
1 change: 1 addition & 0 deletions src/plots/geo/geo.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ proto.makeFramework = function() {

// sane lonlat to px
_this.project = function(v) {
if(!v) return [null, null];
var px = _this.projection(v);
return px ?
[px[0] - _this.xaxis._offset, px[1] - _this.yaxis._offset] :
Expand Down
0