Skip to content

Commit

Permalink
take into account showgrid atrrs
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Jan 10, 2020
1 parent 7e62ce4 commit 1b905a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/plots/geo/layout_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ function handleGeoDefaults(geoLayoutIn, geoLayoutOut, coerce, opts) {
newTemplate.showocean = false;
newTemplate.showrivers = false;
newTemplate.showsubunits = false;
if(newTemplate.lonaxis) newTemplate.lonaxis.showgrid = false;
if(newTemplate.lataxis) newTemplate.lataxis.showgrid = false;

// set ref to copy
geoLayoutOut._template = newTemplate;
Expand Down
4 changes: 3 additions & 1 deletion test/jasmine/tests/geo_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,9 @@ describe('Test Geo layout defaults', function() {
showlakes: true,
showocean: true,
showrivers: true,
showsubunits: true
showsubunits: true,
lonaxis: { showgrid: true },
lataxis: { showgrid: true }
}
}
},
Expand Down

0 comments on commit 1b905a1

Please sign in to comment.