Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/07/2007, 05:17
evola
 
Fecha de Ingreso: junio-2007
Mensajes: 105
Antigüedad: 16 años, 10 meses
Puntos: 0
Re: ¿cómo Introducir Google Maps En Nuestro Sitio? Parte I

Perrogun, hasta donde has esplicado es lo facil. Mi problema biene cuando intento modificar o añadir algún dato que no sea la latitud, aquí teneis el codigo que he modificao:

Código:
body><!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=[KEY]"
      type="text/javascript"></script>
    <script type="text/javascript">
    //<![CDATA[
    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
		
        map.setMapType(G_HYBRID_TYPE);
		
        map.addControl(new GMapTypeControl());
        map.addControl(new GSmallMapControl());

// Create the marker and corresponding information window
function createInfoMarker(point, address) {
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(address); } );
return marker;
}

var point = new GPoint(28142880367148,937758922576904);
var address = 'Tudi-Turismo Rural y Diversión<br/>Central<br />Pza. Ignacio Mª Alava 8-2ºA - Huelva<br />Tlef: 959821726-647151598';
var marker = createInfoMarker(point, address);
map.addOverlay(marker); 


        map.setCenter(new GLatLng(37.7018259411675,-6.77262612406668), 8);
      }
    }
    //]]>
    </script>
  </head>
  <body onload="load()" onunload="GUnload()">
    <div id="map" style="width: 500px; height: 300px"></div>
  </body>
</html>
<




PD: Con este código me aparece el recuadro pero en gris y sin el mapa en el fondo. ¿Alguién sabe porqué ocurre eso?