˙ţ<!DOCTYPE html> <html> <!-- Copyright 2009 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <head> <title>Google Earth API Mode</title> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <script type="text/javascript" src="https://www.google.com/jsapi"> </script> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDrNFQVINGwQgstXvmH7-7-B2YehlnDLgo&sensor=SET_TO_TRUE_OR_FALSE"> </script> <script type="text/javascript"> /* <![CDATA[ */ var ge; var placemark; google.load("earth", "1"); function init() { google.earth.createInstance('map3d', initCB, failureCB); } function initCB(instance) { ge = instance; ge.getWindow().setVisibility(true); // add a navigation control ge.getNavigationControl().setVisibility(ge.VISIBILITY_AUTO); // add some layers ge.getLayerRoot().enableLayerById(ge.LAYER_BORDERS, true); ge.getLayerRoot().enableLayerById(ge.LAYER_ROADS, true); } function failureCB(errorCode) { } function showSky() { ge.getOptions().setMapType(ge.MAP_TYPE_SKY); setTimeout(function() { // Zoom in on a nebula. var oldFlyToSpeed = ge.getOptions().getFlyToSpeed(); ge.getOptions().setFlyToSpeed(.2); // Slow down the camera flyTo speed. var lookAt = ge.getView().copyAsLookAt(ge.ALTITUDE_RELATIVE_TO_GROUND); lookAt.set(41.28509187215, -169.2448684551622, 0, ge.ALTITUDE_RELATIVE_TO_GROUND, 262.87, 0, 162401); // Also try: // lookAt.set(-59.65189337195337, -18.799770300376053, 0, // ge.ALTITUDE_RELATIVE_TO_GROUND, 0, 0, 36817); ge.getView().setAbstractView(lookAt); ge.getOptions().setFlyToSpeed(oldFlyToSpeed); }, 1000); // Start the zoom-in after one second. } function showEarth() { ge.getOptions().setMapType(ge.MAP_TYPE_EARTH); } /* ]]> */ </script> </head> <body bgcolor="#000000" onload="if(window.prettyPrint)prettyPrint();init();"> <br><br><br><br> <div id="extra-ui" style="position: absolute; left: 20px; top:50px;"> <input type="button" onclick="showSky()" value="‡[™[zz“•x0 GO˙"/> <input type="button" onclick="showEarth()" value="0Wtk00^„"/> </div> <div style="clear: both;"></div> <div id="ui" style="position: relative;"> <div id="map3d" style="border: 0px solid silver; width: 520px; height: 500px;"></div> <br/> </div> </body> </html>