Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/02/2016, 12:29
Avatar de carlillos
carlillos
 
Fecha de Ingreso: febrero-2007
Ubicación: México
Mensajes: 245
Antigüedad: 17 años, 3 meses
Puntos: 21
Respuesta: Cómo abrir nueva ventana al hacer click en tooltip infofob en googlemaps s

No entendí muy bien cómo está integrado tu código pero un ejemplo podría ser así:
Código HTML:
Ver original
  1. <!DOCTYPE html>
  2. <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
  3. <meta charset="utf-8">
  4. <title>Mapa</title>
  5. html, body {
  6.     height: 100%;
  7.     margin: 0;
  8.     padding: 0;
  9. }
  10. #mapa {
  11.     height: 100%;
  12. }
  13. </head>
  14. <div id="mapa"></div>
  15.  
  16. function iniciar() {
  17.    
  18.     var ubicacion = {lat: 41.3781398, lng: 2.1663711999999578};
  19.  
  20.     var mapa = new google.maps.Map(document.getElementById('mapa'), {
  21.         zoom: 18,
  22.         center: ubicacion
  23.     });
  24.  
  25.     var marcador = new google.maps.Marker({
  26.         position: ubicacion,
  27.         map: mapa,
  28.         icon: 'http://www.marinomedia.com/lodeflor/wp-content/uploads/2015/10/logo_map.png'
  29.     });
  30.  
  31.     google.maps.event.addListener(marcador, 'click', function() {
  32.         window.open('https://www.google.es/maps/place/Restaurante+Lo+de+Flor/@41.3781543,2.1662756,15z/data=!4m2!3m1!1s0x0:0x3375c9bf1804ac13');
  33.     });
  34.  
  35. }
  36.  
  37. <script async defer src="https://maps.googleapis.com/maps/api/js?signed_in=true&callback=iniciar"></script>
  38. </body>
  39. </html>
Saludos.