Closed azzerger closed 7 years ago
That's exactly what the "Share URL" feature does, right? :) The only thing is it's a pretty messy URL if you're not using the shortener.
Steve, that is perfect (almost) – I had not realised the Share feature picked up all the current view parameters.
However I see the problem (e.g. URL I need below) – I was hoping to use these in a Word document or email but the Hyperlink tool is not liking it. Guess that's why we need a shortener. We can have a look at a shortener at our end – the Bureau does have a URL shortening service not necessarily designed for this purpose but it may do the job.
Andre
From: Steve Bennett [mailto:notifications@github.com] Sent: Friday, 10 June 2016 3:37 PM To: TerriaJS/neii-viewer Cc: Andre Zerger; Author Subject: Re: [TerriaJS/neii-viewer] Customise TerriaJS url to pass parameters? (#27)
That's exactly what the "Share URL" feature does, right? :) The only thing is it's a pretty messy URL if you're not using the shortener.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/TerriaJS/neii-viewer/issues/27#issuecomment-225097526, or mute the threadhttps://github.com/notifications/unsubscribe/ARSyzT6_PA8c2NFr4yq9eMT-zbsH-yGKks5qKPgIgaJpZM4IymwQ.
There's a shortener feature built into Terria. We just need to get a Google API key to enable it. Leave it with me.
OK – see how you go – apparently we can also implement a shortening service on neii.gov.au but have never attempted this.
From: Steve Bennett [mailto:notifications@github.com] Sent: Friday, 10 June 2016 4:19 PM To: TerriaJS/neii-viewer Cc: Andre Zerger; Author Subject: Re: [TerriaJS/neii-viewer] Customise TerriaJS url to pass parameters? (#27)
There's a shortener feature built into Terria. We just need to get a Google API key to enable it. Leave it with me.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/TerriaJS/neii-viewer/issues/27#issuecomment-225102566, or mute the threadhttps://github.com/notifications/unsubscribe/ARSyzXUIR5U-vsvR2vNUHYzZykThADqQks5qKQHLgaJpZM4IymwQ.
It turns out the Google URL shortener doesn't really cope with huge URLs like these, so I'm actually implementing a whole new one. https://github.com/TerriaJS/terriajs/issues/1342
Steve
OK – up to you – I have been recently made aware of tinyurl.com and it does the job (e.g. http://tinyurl.com/heomq9j for solar data) however a more elegant URL would be nice. We have a shortening service in the Bureau which takes everything to bom.is/ but not that useful for non-Bureau data resources in the NEII.
What domain were you thinking?
Andre
From: Steve Bennett [mailto:notifications@github.com] Sent: Wednesday, 29 June 2016 1:03 PM To: TerriaJS/neii-viewer Cc: Andre Zerger; Author Subject: Re: [TerriaJS/neii-viewer] Enable Google URL shortener (get API key) (#27)
It turns out the Google URL shortener doesn't really cope with huge URLs like these, so I'm actually implementing a whole new one. TerriaJS/terriajs#1342https://github.com/TerriaJS/terriajs/issues/1342
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/TerriaJS/neii-viewer/issues/27#issuecomment-229244293, or mute the threadhttps://github.com/notifications/unsubscribe/ARSyzcJJWCM5REJDRnsRoymUIuxxdViDks5qQeBcgaJpZM4IymwQ.
The end URL will look like http://neii.gov.au/viewer#share=g-3475874298568947365896 . The data itself will be stored on Gist (Github), but that's totally invisible to the end user.
Steve, that would work well. Andre
From: Steve Bennett [mailto:notifications@github.com] Sent: Wednesday, 29 June 2016 1:09 PM To: TerriaJS/neii-viewer Cc: Andre Zerger; Author Subject: Re: [TerriaJS/neii-viewer] Enable Google URL shortener (get API key) (#27)
The end URL will look like http://neii.gov.au/viewer#share=3475874298568947365896 . The data itself will be stored on Gist (Github), but that's totally invisible to the end user.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/TerriaJS/neii-viewer/issues/27#issuecomment-229244982, or mute the threadhttps://github.com/notifications/unsubscribe/ARSyzQjYbzTrV8xCoSdCb2z_qjAxq9P_ks5qQeHSgaJpZM4IymwQ.
@kring , it would be great if you could advise the statuis of this item and if this will be released as part of the New Viewer? Thanks.
Thanks @RacingTadpole. Tested successfully. A new item has been raised to better understand how the share url and shorten url works at https://github.com/TerriaJS/neii-viewer/issues/69
Steve, in the current implementation is it possible to pass a more complex URL to the Viewer to for example zoom to a particular area, start the view with some layers on and some layers off etc.
The use case is that we wish to take people to the NEMSR once its inside the Viewer but rather than point to neii.gov.au/viewer we would point to something (pseudo code only) neii.gov.au/viewer/allnemsrOn+zoomtoAustralia+expandNEMSRLayers
Please don't go developing something - just wondering whether there is native support for passing parameters through a URL. Cheers Andre