URL Parameters
Certain TE4W parameters can be defined from the URL query string, including the project to load and the TE4W configuration.
To define these parameters
§ Append the required parameters to the end of your TE4W URL. Multiple parameters can be added using a ‘&' to separate between parameters (e.g., http://www.skylineglobe.com/sg/SiteOne/terraexplorerweb/terraexplorer.html? config=config.kml&catalogid=12345&lang=chinese). Use the format in the examples below for each of the parameters:
§ catalogid – The TE4W project to load. The project is identified by its ID (catalogid) in SkylineGlobe Server.
Note: After publishing a project in TerraExplorer, a dialog box is displayed with the URLs of the Desktop, TE Web, and Mobile projects. The catalogid can be copied from the TE Web URL.
E.g.,
*… /TerraExplorer.html?catalogid=908348
§ config - TE4W configuration that defines various elements of your TE4W including which layers TE4W can connect to, your website subdomains, screen overlay logo, copyright text, and search provider. Customized configurations are created in the TerraExplorer for Web Settings section of the Settings page. See “Creating Additional Customized Configurations” in the “SkylineGlobe Server Settings” chapter for information.
config=[filename]
E.g.,
*… /TerraExplorer.html?config=myConfiguration
Note: See “Setting TerraExplorer for Web Settings” for information on creating customized configurations.
§ position - The position of the camera in which the project should start.
position=[lon,lat,distance,yaw,pitch]
E.g.,
*… /TerraExplorer.html?position=3.205,-14.78,4000,0,-25
§ lang - The user interface language. See "Localization" in this chapter for more information.
lang=[language]
E.g.,
*… /TerraExplorer.html?lang=Russian