Share URL
I want use the default 'Share' button to share the viewer's URL. I know users could just pick any of the other options and copy the URL from there, but that appears to be too much hassle for some.
I tried to run a workflow from the Share menu:
{
"id": "hyperlink",
"displayName": "Hyperlink",
"url": "command:RunWorklowWithArguments?workflowId=ShareUrl&Url={ViewerUrl}')",
"iconUri": "Resources/Images/Icons/link-external-24.png"
}
But this just opens a new browser tab with command:.... as URL.I also tried to show a standard JavaScript prompt:
{
"id": "hyperlink",
"displayName": "Hyperlink",
"url": "javascript:prompt('Kopiëer onderstaande hyperlink om te kunnen delen.', '{ViewerUrl}')",
"iconUri": "Resources/Images/Icons/link-external-24.png"
}
But this also opens a new browser tab.
0
-
Hi Berend,
I've looked into this and I think that custom code would be necessary for something like this. The Share tool's code is designed to open a hyperlink, and "command:" hyperlink format is only available to certain parts of the viewer (eg Feature Description).0 -
Thanks, do you have an example of integrating a custom option in the Share menu? 0 -
Berend
Did you figure this out?
Thanks
Jim Brink
0 -
Jim,
No, VertiGIS never replied to my last question.
0
Please sign in to leave a comment.
Comments
4 comments