Skip to content

Commit 1b905a1

Browse files
committed
take into account showgrid atrrs
1 parent 7e62ce4 commit 1b905a1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/plots/geo/layout_defaults.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ function handleGeoDefaults(geoLayoutIn, geoLayoutOut, coerce, opts) {
6161
newTemplate.showocean = false;
6262
newTemplate.showrivers = false;
6363
newTemplate.showsubunits = false;
64+
if(newTemplate.lonaxis) newTemplate.lonaxis.showgrid = false;
65+
if(newTemplate.lataxis) newTemplate.lataxis.showgrid = false;
6466

6567
// set ref to copy
6668
geoLayoutOut._template = newTemplate;

test/jasmine/tests/geo_test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,9 @@ describe('Test Geo layout defaults', function() {
662662
showlakes: true,
663663
showocean: true,
664664
showrivers: true,
665-
showsubunits: true
665+
showsubunits: true,
666+
lonaxis: { showgrid: true },
667+
lataxis: { showgrid: true }
666668
}
667669
}
668670
},

0 commit comments

Comments
 (0)