Skip to content

Commit 5a9983d

Browse files
authoredFeb 27, 2017
Merge pull request #1422 from plotly/geo-aitoff-sinusoidal
Add Aitoff and Sinusoidal projection types
2 parents c227d15 + 3fb5814 commit 5a9983d

File tree

4 files changed

+668
-2
lines changed

4 files changed

+668
-2
lines changed
 

‎src/plots/geo/constants.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ params.projNames = {
3333
'hammer': 'hammer',
3434
'transverse mercator': 'transverseMercator',
3535
'albers usa': 'albersUsa',
36-
'winkel tripel': 'winkel3'
36+
'winkel tripel': 'winkel3',
37+
'aitoff': 'aitoff',
38+
'sinusoidal': 'sinusoidal'
3739
};
3840

3941
// name of the axes

‎src/plots/geo/geo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ proto.plot = function(geoCalcData, fullLayout, promises) {
8989
var mouse = d3.mouse(this),
9090
lonlat = _this.projection.invert(mouse);
9191

92-
if(isNaN(lonlat[0]) || isNaN(lonlat[1])) return;
92+
if(!lonlat || isNaN(lonlat[0]) || isNaN(lonlat[1])) return;
9393

9494
var evt = {
9595
target: true,
96.9 KB
Loading

0 commit comments

Comments
 (0)