-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4483 from plotly/fix4482-geo-visible-showland
geo.visible false should override template.layout.geo.show*
- Loading branch information
Showing
4 changed files
with
273 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"type": "scattergeo", | ||
"marker": { | ||
"opacity": 0.5, | ||
"color": "green", | ||
"size": 100 | ||
}, | ||
"lon": [ | ||
0 | ||
], | ||
"lat": [ | ||
0 | ||
] | ||
}, | ||
{ | ||
"geo": "geo2", | ||
"type": "scattergeo", | ||
"marker": { | ||
"opacity": 0.5, | ||
"color": "yellow", | ||
"size": 100 | ||
}, | ||
"lon": [ | ||
0 | ||
], | ||
"lat": [ | ||
0 | ||
] | ||
}, | ||
{ | ||
"geo": "geo3", | ||
"type": "scattergeo", | ||
"marker": { | ||
"opacity": 0.5, | ||
"color": "red", | ||
"size": 100 | ||
}, | ||
"lon": [ | ||
0 | ||
], | ||
"lat": [ | ||
0 | ||
] | ||
} | ||
], | ||
"layout": { | ||
"width": 600, | ||
"height": 800, | ||
"title": { | ||
"text": "geo visible false should override template.layout.geo.show*" | ||
}, | ||
"geo": { | ||
"visible": true | ||
}, | ||
"geo2": { | ||
"visible": false | ||
}, | ||
"geo3": { | ||
"visible": true | ||
}, | ||
"template": { | ||
"layout": { | ||
"geo": { | ||
"showcoastlines": true, | ||
"showcountries": true, | ||
"showframe": true, | ||
"showland": true, | ||
"showlakes": true, | ||
"showocean": true, | ||
"showrivers": true, | ||
"showsubunits": true, | ||
"lonaxis": { | ||
"showgrid": true | ||
}, | ||
"lataxis": { | ||
"showgrid": true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters