Convert client tokens back into URIs (Javascript)
Hi,
Is there a way to convert the Geocortex Client tokens, e.g. {RestVirtualDirectoryUrl}, back in to a full URL using the JavaScript/TypeScript API?
I can do this by replacing the string, but that assumes I know where the rest virtual directory is when I write the code, I'd rather use something safer to determine the actual locations for these variables.
I am looking specifically at custom layer icon uri and legend uri properties of layers.
Thanks,
Andy
0
-
Hi Andrew, it sounds like this should be possible using RestHelper.processClientSideTokens in the Essentials API. Link for the api doc is here (https://docs.geocortex.com/essentials/gvh/2.10/api-help/classes/_essentials_amd_d_._geocortex_essentials_resthelper_.resthelper.html#processclientsidetokens) .
Hope that helps,
-Amanda0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar