TerraExplorer Fusion offers a powerful configuration feature that allows you to tailor TEF to different user groups. With configurations, you can easily customize various aspects of TEF, including logged in user, style sheet, language, and startup script, all in one place. Each configuration is saved in SGS under a unique name, which can then be shared with the required group of users, by appending it to the shared TEF URL.
TEF configurations are created and managed in the TerraExplorer Fusion Settings section of the SkylineGlobe Server Manager Settings page.
To create a custom TerraExplorer Fusion configuration:
- From the SkylineGlobe Server menu, select Settings. The Settings page is displayed.
- In the TerraExplorer Fusion Settings section, click Create New Configuration. The TerraExplorer Fusion Settings dialog box is displayed.
- Modify the settings as required:
- Configuration Name - Name of the configuration.
- Set Configuration as Default - Set this configuration as the default for this site. If no other configuration is specified in a URL query string, then the default one is used.
-
Login Mode - Select the method of logging in to your TerraExplorer Fusion with this configuration:
- Project-Defined – Login to TEF depends on the permissions set for the project being opened in TEF. More about: Granting edit or view access to a layer >
- Force User Login – Require login before loading TEF (i.e., no guest login).
- Login by Token – Automatically log in to TEF when opening this configuration, with the token defined here for this configuration.
- Language - To localize your TerraExplorer Fusion, contact us at support@skylinesoft.com.
-
Startup Script - Type a valid JavaScript code to run when opening TerraExplorer Fusion with this configuration. This script can directly run SGWorld commands or reference TerraExplorer Fusion custom tools, adding them to the analysis or navigation tool panels. More about: Startup scripts > E.g.,
var circle = SGWorld.Creator.CreateCircle(SGWorld.Creator.CreatePosition(-84.5,39.1,0,2),50);
Note: To disable the "Add location" right-click menu available in TerraExplorer Fusion Plus, add the following script:
SGWorld.Navigate.FlyTo(circle.ID);
application.state.enableContextMenu = false;
-
CSS Stylesheet - You can customize TEF styling with a custom CSS that hides different user interface components (e.g., tabs and tools) and defines various styling and other elements including: color, fonts, screen overlay logo, copyright text, default tab, and direction (RTL/LTR). More about: Style Sheets (CSS)>. For examples of some of the properties that can be customized in the CSS, see the custom.css file that is under the TerraExplorer Fusion application files' "./custom folder". Note that the custom.css file is always loaded, so if you want to make style customizations that will be seen by all users, simply edit this file. For a custom CSS that will only be used in this configuration, enter the CSS definitions here. E.g.,
/* Show the Navigate and Project Tree tabs and hide the Layers tab in the Analysis tool panel. */
#layersButtonState0 {display: inline;}
#layersButtonState1 {display: none;}
#layersButtonState2 {display: inline;}
#layersButtonState2 {background-size: 1px;}
/* Show the Tools and Maps tabs and hide the Environment tab in the Analysis tool panel. */
#analysisTabButton0 {display: inline;}
#analysisTabButton1 {display: none;}
#analysisTabButton2 {display: inline;}
/* Show only some of the analysis tools. */
#distanceBtn {display:inline-block}
#areaBtn{display:inline-block}
#volumeBtn {display:inline-block}
To use the configuration:
- Append the “config=[ConfigurationName]” query parameter to the end of your URL query string. e.g., https://cloud.skylineglobe.com/sg/TEF/te.html?project=https://cloud.skylineglobe.com/SG/demos/projects/Mexico_Beach_Emergency_Response&config=KB_ConfigurationExample
More about: Set URL Parameters >