Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/10/2006, 09:38
Avatar de reyesoft
reyesoft
 
Fecha de Ingreso: abril-2006
Ubicación: San Rafael, Mendoza
Mensajes: 311
Antigüedad: 18 años, 1 mes
Puntos: 15
Google Earth en mi sitio:Mostrar vista Satélite como predeterminada

Hola Comunidad: estoy trabajando con Google Earth para hacer unas interacciones con mi sitio.

El problema se centra en que en mi ciudad todavía no tenemos mapas, por lo que sólo tenemos disponible imágenes de satélite. Es entonces que necesito mostrar de forma predeterminada las imágenes de satélite y no Mapa o Híbrido.

Encontré muy pocos scripts para solucionarlo, pero ya son obsoletos.

A continuación pongo el código que tengo actualmente por si alguien desea también hacerlo:

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Google Maps JavaScript API Example</title>
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAt_cGIMhHCQZf_UxdI6lPhBSqZhVw3pd8rCbvrSkerGsv_5MmtRSdHFL56KvEdRZcVA8HRjqC7kZQ1w" type="text/javascript"></script>
    <script type="text/javascript">
    //<![CDATA[
    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        
        map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(-34.616133, -68.329951), 17);
      }
    }
    //]]>
    </script>
  </head>
  <body onload="load()" onunload="GUnload()">
    <div id="map" style="width: 100%; height: 540px;"></div>
  </body>
</html> 
Es un buen reto, si alguien sabe o consigue desmarañarlo estaré muy agradecido si me lo cuenta.