8000 geo.visible false should override template.layout.geo.show* by archmoj · Pull Request #4483 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

geo.visible false should override template.layout.geo.show* #4483

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

Merged
merged 7 commits into from
Jan 13, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
take into account showgrid atrrs
  • Loading branch information
< FC02 /div>
archmoj committed Jan 10, 2020
commit 1b905a1588752b6fd46be1ea1544ffd881fb88f3
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