disabling hash URL parameters in universalviewer.io

49 views
Skip to first unread message

Alexander Huber

unread,
Oct 20, 2019, 5:32:53 AM10/20/19
to Universal Viewer
Hello!  

What is the recommended way of disabling the creation of the hash URL parameters (i.e. the #?c=&m=&s=&cv=&xywh=-3944%2C0%2C12176%2C5457 part)?

Thanks!

Alexander.

Edward Silverton

unread,
Oct 21, 2019, 2:35:35 AM10/21/19
to Alexander Huber, Universal Viewer
Hi!

uv/helpers.js has some boilerplate code to make it easier to work with the UV. You can make your own version of this excluding all of the dataProvider.set calls:


In the examples dataProvider is the built-in URLDataProvider (reads and writes hash params), but you could write your own to get the params from another source.

You can see where uv/helpers.js is included in index.html here:


Hope this helps!

--
You received this message because you are subscribed to the Google Groups "Universal Viewer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to universalview...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/universalviewer/9fd5b9ae-6456-4d92-9632-add9d5a3050d%40googlegroups.com.

Alexander Huber

unread,
Oct 21, 2019, 5:33:36 AM10/21/19
to Universal Viewer
Perfect, that's exactly the information I needed.  Thanks very much, Edward!

Best wishes, 
Alexander.


On Monday, 21 October 2019 07:35:35 UTC+1, Edward Silverton wrote:
Hi!

uv/helpers.js has some boilerplate code to make it easier to work with the UV. You can make your own version of this excluding all of the dataProvider.set calls:


In the examples dataProvider is the built-in URLDataProvider (reads and writes hash params), but you could write your own to get the params from another source.

You can see where uv/helpers.js is included in index.html here:


Hope this helps!

On Sun, 20 Oct 2019, 10:32 Alexander Huber, <alhub...@gmail.com> wrote:
Hello!  

What is the recommended way of disabling the creation of the hash URL parameters (i.e. the #?c=&m=&s=&cv=&xywh=-3944%2C0%2C12176%2C5457 part)?

Thanks!

Alexander.

--
You received this message because you are subscribed to the Google Groups "Universal Viewer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to univers...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages