Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can <a href="https://developers.google.com/earth/documentation/camera_control#flytospeed" rel="nofollow">set the fly to speed</a> to <code>SPEED_TELEPORT</code> before loading the abstract view.</p> <p>This setting will make globe instantaneously fly-to the desired location rather than 'swooping in'. If regular movement should be restored then after you have your initial view you can set the speed back to the default setting.</p> <p>For example the following function can be used to instantaneously fly-to the desired location. The method accepts any <a href="https://developers.google.com/earth/documentation/reference/interface_kml_abstract_view" rel="nofollow">KmlAbstractView</a>, i.e. a <a href="https://developers.google.com/earth/documentation/reference/interface_kml_camera" rel="nofollow">KmlCamera</a> or <a href="https://developers.google.com/earth/documentation/reference/interface_kml_look_at" rel="nofollow">KmlLookAt</a> as its single parameter.</p> <pre><code>// fly-to a view using SPEED_TELEPORT function teleport(abstractView) { var oldSpeed = ge.getOptions().getFlyToSpeed(); . ge.getOptions().setFlyToSpeed(ge.SPEED_TELEPORT); ge.getView().setAbstractView(abstractView); // Wooosh! ge.getOptions().setFlyToSpeed(oldSpeed); } </code></pre> <p>Further to this to make sure that the transition is not shown at all for an initial position you can make the teleport move before setting the <code>GEWindow</code> visibility to True. For example.</p> <pre><code>function initCB(instance) { ge = instance; var la = ge.createLookAt(''); la.set(-1.251336, -78.443817, 7000, ge.ALTITUDE_RELATIVE_TO_GROUND, 177, 65, 500); teleport(la); // set the position ge.getWindow().setVisibility(true); // now display the window //etc.. </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload