Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/06/2011, 13:42
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 14 años, 11 meses
Puntos: 1517
Respuesta: Coordenadas de Google Maps

Trata este http://www.maestrosdelweb.com/guias/

Edito:
Es algo bien sencillo, algo así
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4.     <title>test</title>
  5.     <style>
  6.     *{ margin: 0; padding: 0; }
  7.     html, body, #map{
  8.         width: 100%;
  9.         height: 100%;
  10.     }
  11.     </style>
  12.     <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&amp;language=es"></script>
  13.     <script type="text/javascript">
  14.     window.onload = function(){
  15.         var options = {
  16.             zoom: 9
  17.             , center: new google.maps.LatLng(18.2, -66.5)
  18.             , mapTypeId: google.maps.MapTypeId.ROADMAP
  19.         };
  20.  
  21.         var map = new google.maps.Map(document.getElementById('map'), options);
  22.  
  23.         var marker = new google.maps.Marker({
  24.             position: map.getCenter()
  25.             , map: map
  26.             , title: 'Muéveme'
  27.             , draggable: true
  28.         });
  29.  
  30.         google.maps.event.addListener(marker, 'dragend', function(e){
  31.             alert(e.latLng);
  32.         });
  33.     };
  34.     </script>
  35. </head>
  36.     <div id="map"></div>
  37. </body>
  38. </html>
__________________
Verifica antes de preguntar.
Los verdaderos amigos se hieren con la verdad, para no perderlos con la mentira. - Eugenio Maria de Hostos

Última edición por abimaelrc; 09/06/2011 a las 13:52