List of service URL and usefull functions to get URLs.
- Source:
- api/serviceURL.js
Members
-
<static, constant> serviceURL
-
List of services url
- Source:
- api/serviceURL.js
Methods
-
<static> encodeTitleURL(title)
-
Encode a string as title to add in a url (only keep letters and digit)
Parameters:
Name Type Description titlestring - Source:
- api/serviceURL.js
Returns:
encoded title
- Type
- string
-
<static> getDocumentationURL(category, article)
-
Get documentation (editorial) url
Parameters:
Name Type Description categorystring articlestring - Source:
- api/serviceURL.js
Returns:
url
- Type
- string
-
<static> getEditorURL(carte)
-
Get viewer for a carte
Parameters:
Name Type Description carteObject Properties
Name Type Argument Default Description edit_idstring titlestring <optional>
'carte' typestring <optional>
'carte' map type 'storymap' or 'macarte'
showTitleboolean <optional>
true - Source:
- api/serviceURL.js
Returns:
viewer url
- Type
- string
-
<static> getMediaURL(id)
-
Get media url
Parameters:
Name Type Description idstring media id
- Source:
- api/serviceURL.js
Returns:
media url
- Type
- string
-
<static> getTeamURL(team)
-
Get team url
Parameters:
Name Type Description teamstring | Object team name
- Source:
- api/serviceURL.js
Returns:
user url
- Type
- string
-
<static> getUserURL(user)
-
Get user url
Parameters:
Name Type Description userstring | Object user name
- Source:
- api/serviceURL.js
Returns:
user url
- Type
- string
-
<static> getViewerURL(carte [, tab])
-
Get viewer for a carte
Parameters:
Name Type Argument Description carteObject Properties
Name Type Argument Default Description view_idstring titlestring <optional>
'carte' typestring <optional>
'carte' map type 'storymap' or 'macarte'
showTitleboolean <optional>
true noZoomboolean <optional>
false positionArray.<number> <optional>
tabboolean <optional>
the map is inside a tab (onglet)
- Source:
- api/serviceURL.js
Returns:
viewer url
- Type
- string