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
dev:developer:examples:addoverlayobjects [2019/06/13 12:42]
pieter.bonne@orbitgt.com
dev:developer:examples:addoverlayobjects [2020/05/12 17:59]
jeroen removed
Line 1: Line 1:
 ====== Example addOverlayObjects ====== ====== Example addOverlayObjects ======
  
-=== Code === 
- 
-=== Viewer === 
  
 <html> <html>
Line 34: Line 31:
          */          */
         function handleWorkspaceOpened() {         function handleWorkspaceOpened() {
- 
-            /* 
-            var part = new CoordinatePart(); 
-            part.points.add(Coordinate.fromXY(null,16.7947624,48.14066872)); 
-            part.points.add(Coordinate.fromXY(null,16.79443130,48.14004343)); 
-            part.points.add(Coordinate.fromXY(null,16.79315123,48.14024072)); 
-            part.points.add(Coordinate.fromXY(null,16.79344258,48.14092542)); 
-            var path = new CoordinatePath(); 
-            path.crs = "4326"; 
-            path.parts.add(part); 
-            */ 
  
             var part = new CoordinatePart();             var part = new CoordinatePart();
Line 92: Line 78:
             var loginOptions = new AMap();             var loginOptions = new AMap();
             loginOptions.set(Constants.LOGIN_MODE, Constants.LOGINMODE_GUEST_CLOUD);             loginOptions.set(Constants.LOGIN_MODE, Constants.LOGINMODE_GUEST_CLOUD);
-            loginOptions.set(Constants.LOGIN_PUBLICATION_PUBLIC_ID, "CldMRasjNYPbnBQcyo3A");+            loginOptions.set(Constants.LOGIN_PUBLICATION_PUBLIC_ID, "R4hyyTRFUQPbnBlzZf7Q");
             var options = new AMap();             var options = new AMap();
             options.set(Constants.STARTUP_AUTO_LOGIN,loginOptions);             options.set(Constants.STARTUP_AUTO_LOGIN,loginOptions);
Line 106: Line 92:
  
    </script>    </script>
 +  
 </html> </html>