diff --git a/geppetto-showcase/src/examples/big-image-viewer/BigImageViewerExample.js b/geppetto-showcase/src/examples/big-image-viewer/BigImageViewerExample.js index 257e1ffbc..8c5f6f2c7 100644 --- a/geppetto-showcase/src/examples/big-image-viewer/BigImageViewerExample.js +++ b/geppetto-showcase/src/examples/big-image-viewer/BigImageViewerExample.js @@ -11,7 +11,8 @@ const styles = { }, }; -const data = 'https://s3.amazonaws.com/patient-hm-august-2017/Histology/HM_1243_FLIPPED_DZ_tif.dzi'; +// TODO: Update to a neuroscience example +const data = 'https://raw.githubusercontent.com/openseadragon/openseadragon/a6792138814d1eff5ae4fca526b989fc917245be/test/data/wide.dzi'; class BigImageViewerExample extends Component { @@ -19,7 +20,8 @@ class BigImageViewerExample extends Component { const { classes } = this.props; return (
- +
); } diff --git a/geppetto.js/geppetto-ui/src/big-image-viewer/BigImageViewer.js b/geppetto.js/geppetto-ui/src/big-image-viewer/BigImageViewer.js index 761022b7a..0e283255e 100644 --- a/geppetto.js/geppetto-ui/src/big-image-viewer/BigImageViewer.js +++ b/geppetto.js/geppetto-ui/src/big-image-viewer/BigImageViewer.js @@ -131,12 +131,21 @@ class BigImageViewer extends Component { } render () { - const { classes } = this.props; + const { classes, toolbarOptions } = this.props; const customButtons = this.getCustomButtons(); + const toolbar = toolbarOptions && toolbarOptions.instance ? ( + + ) : ; return (
- + {toolbar}