Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
dev:viewer:sdk:initialize_js [2020/05/15 11:17]
reine
dev:viewer:sdk:initialize_js [2020/10/13 07:25]
pieter
Line 11: Line 11:
  
 Replace **<version>** by the actual version you want to use. \\  Replace **<version>** by the actual version you want to use. \\ 
-For example to use SDK version 19.3.0 : <nowiki>https://cdn.3dmapping.cloud/19.3.0/javascript/orbitgt_3dm_sdk.js</nowiki>+For example to use SDK version 20.9.0 : <nowiki>https://cdn.3dmapping.cloud/20.9.0/javascript/orbitgt_3dm_sdk.js</nowiki>
  
  
Line 22: Line 22:
 Add the following script tag to your application. Add the following script tag to your application.
  
-Example for SDK version 19.3.0+Example for SDK version 20.9.0
 <code> <code>
 <html> <html>
  <head>  <head>
-   <script type="text/javascript" src="https://cdn.3dmapping.cloud/19.3.0/javascript/orbitgt_3dm_sdk.js"></script>+   <script type="text/javascript" src="https://cdn.3dmapping.cloud/20.9.0/javascript/orbitgt_3dm_sdk.js"></script>
  </head>  </head>
 </html> </html>
Line 35: Line 35:
 Before we can start using the library, you must wait for the browser document to be fully loaded.  The code below is the most basic way of doing that by waiting for the ''DOMContentLoaded'' event. \\ Before we can start using the library, you must wait for the browser document to be fully loaded.  The code below is the most basic way of doing that by waiting for the ''DOMContentLoaded'' event. \\
 Once the library is ready, we can instantiate the ''SDKViewer'' class.  \\ Once the library is ready, we can instantiate the ''SDKViewer'' class.  \\
-The initial state of the viewer can be tweaked by providing [[concepts|startup options]] defined by the ''Constants'' class.  You can use startup options to [[viewer_state|restore viewer state]] or set the communication [[concepts|CRS]]. \\+The initial state of the viewer can be tweaked by providing [[dev:viewer:sdk:concepts|startup options]] defined by the ''Constants'' class.  You can use startup options to [[dev:viewer:sdk:viewer_state|]] or set the communication [[dev:viewer:sdk:concepts|CRS]]. \\
 After creating the viewer, wait for the ''isReady'' promise to resolve. After creating the viewer, wait for the ''isReady'' promise to resolve.
  
 
Last modified:: 2023/10/03 13:07