-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add satellite and various projection types to geo subplots #5801
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
Changes from 12 commits
e3b0ca3
10c402f
57da6f7
0fc177b
3da8db5
efd9b14
26e4562
a121c49
645a10a
05cc7c4
d1ae4c9
0840127
d102a47
eb30073
2b74d71
bf839d3
5fd3428
77f0367
8e352e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Add satellite and various projection types to geo subplots [[#5801](https://github.com/plotly/plotly.js/pull/5801)] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -647,9 +647,9 @@ function getProjection(geoLayout) { | |
var projFn = geo[projName] || geoProjection[projName]; | ||
var projection = projFn(); | ||
|
||
var clipAngle = geoLayout._isClipped ? | ||
constants.lonaxisSpan[projType] / 2 : | ||
null; | ||
var clipAngle = | ||
projType === 'satellite' ? Math.acos(1 / projection.distance()) * 180 / Math.PI : | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
geoLayout._isClipped ? constants.lonaxisSpan[projType] / 2 : null; | ||
|
||
var methods = ['center', 'rotate', 'parallels', 'clipExtent']; | ||
var dummyFn = function(_) { return _ ? projection : []; }; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a pattern to the ones we're still omitting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of these are now enabled by eb30073.
Let me see if I could easily fix the clipping issue for some other remaining ones...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the remaining ones are interrupted-projections and polyhedral-projections as well as two-point projections , require extra work and attributes and we could say it is outside the scope of this PR.