Replies: 4 comments 2 replies
-
Hi! This can be done by adding Cheers, |
Beta Was this translation helpful? Give feedback.
-
@nf-s thanks for quick reply. While it's good to know about this option, I wish it would completely hide the sidebar, as it still possible to expand it even if it's closed by default. Maybe there is an easy way to add a class somewhere on a body tag when this option is enabled? This way I could hide the buttons via CSS and that would totally satisfy my needs. Also I noticed this site is in your example is using url shortener, is this custom functionality or is it configurable? Sam |
Beta Was this translation helpful? Give feedback.
-
The URL shortener is the terriajs-server share service. If you're using terriajs-server you can configure it to store share data in AWS S3 or Github Gists. Example configuration can be found here - https://github.com/TerriaJS/terriajs-server/blob/c444469d519c25ceb4a7c0379b4f84d5e15085ee/serverconfig.json.example#L134 I can't find a way to completely hide the sidebar programmatically, but it could be achieved with something like this: .tjs-standard-user-interface__sidePanel {
display: none;
} I'm asking around so I'll get back to you if something better comes up Nick |
Beta Was this translation helpful? Give feedback.
-
To anyone wondering, not sure if this is good way to do it but it works for me.... Since I'm using url shortener I the bit that is responsible for loading share url parameters and simply added This requires to clone the package using yarn so you could edit npm module without losing the changes.
|
Beta Was this translation helpful? Give feedback.
-
Hi there,
This is not a bug, I'm just wondering if there is any easy way of hiding sidebar if terria is accessed via share link?
We don't want users to be able to browse our data catalogs and we want them only to consume stories that are already built.
Any help would be awesome.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions