-
Notifications
You must be signed in to change notification settings - Fork 4
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
Error with brainmaps authentication BRAINMAPS_CLIENT_ID #37
Comments
@tkakar you will need to add the brainMapsClientId prop to the Neuroglancer component when you create it, like this: <Neuroglancer
perspectiveZoom={80}
viewerState={viewerState}
brainMapsClientId="NOT_A_VALID_ID"
ngServer="https://clio-ng.janelia.org"
onViewerStateChanged={onViewerStateChanged}
/> If you are not using the BrainMaps datasource, then you can use "NOT_A_VALID_ID" or whatever you wish and that should get you past the error that you are seeing. |
Thanks for the quick response. |
@neomorphic Thanks for adding the readme, it's very helpful. I was using the example ViewerState you provided (assuming the links were pointing to correct datasets) before using our own data with a simple react app. Below is how the UI looks, |
You are missing the stylesheets. The solution that has been used to integrate this into neuprintExplorer is to use the copyWebpackPlugin in our webpack config and copy the css from the @janelia-flyem/neuroglancer module into the released application. You can see how this has been done by looking at the following files in the neuprintExplorer repo: You will also probably need the chunk_worker.bundle.js and async_computation.bundle.js files. A way to include these can be seen in the webpack.config.js file, just above the ng.css copying code. |
@neomorphic thanks for responding. I just got a chance to work on it. I imported the files and only included the .css in the index file (not the bundles).
|
I created an example repo that starts with a basic create react app and includes the neuroglancer window. |
Appreciate it. thank you. |
Hello - thanks for developing this wrapper around neuroglancer. I was trying to use the Neuroglancer component with our own data, however ran into some authentication error stating
Error: BRAINMAPS_CLIENT_ID is not defined
pointing to the underlying code.Any help is appreciated.
The text was updated successfully, but these errors were encountered: