<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[google maps con popup (info window) già aperta]]></title><description><![CDATA[<p dir="auto">Salve, nella sezione <strong>Developers di Google</strong> ho trovato una mappa che fa al mio caso (vedi: <a href="http://developers.google.com/maps/documentation/javascript/examples/infowindow-simple" rel="nofollow ugc">developers.google.com/maps/documentation/javascript/examples/infowindow-simple</a> ) in pratica cliccando sul marcatore si apre una <strong>popup</strong> (info window) con delle informazioni che si possono inserire, l'unico problema è che a me servirebbe che questa popup si aprisse da subito (senza cliccare sul marcatore) ovvero al caricamento della mappa...come posso fare?</p>
<p dir="auto"><em>Ecco il codice nel dettaglio di questa mappa</em>:</p>
<pre><code class="language-html">&lt;!DOCTYPE html&gt;&lt;html&gt;
  &lt;head&gt;
    &lt;meta name="viewport" content="initial-scale=1.0, user-scalable=no"&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;Info windows&lt;/title&gt;
    &lt;style&gt;
      html, body, #map-canvas {
        height: 100%;
        margin: 0px;
        padding: 0px
      }
    &lt;/style&gt;
    &lt;script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;signed_in=true"&gt;&lt;/script&gt;
    &lt;script&gt;
// This example displays a marker at the center of Australia.
// When the user clicks the marker, an info window opens.

function initialize() {
  var myLatlng = new google.maps.LatLng(-25.363882,131.044922);
  var mapOptions = {
    zoom: 4,
    center: myLatlng
  };

  var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);

  var contentString = '&lt;div id="content"&gt;'+
      '&lt;div id="siteNotice"&gt;'+
      '&lt;/div&gt;'+
      '&lt;h1 id="firstHeading" class="firstHeading"&gt;Uluru&lt;/h1&gt;'+
      '&lt;div id="bodyContent"&gt;'+
      '&lt;p&gt;&lt;b&gt;Uluru&lt;/b&gt;, also referred to as &lt;b&gt;Ayers Rock&lt;/b&gt;, is a large ' +
      'sandstone rock formation in the southern part of the '+
      'Northern Territory, central Australia. It lies 335*km (208*mi) '+
      'south west of the nearest large town, Alice Springs; 450*km '+
      '(280*mi) by road. Kata Tjuta and Uluru are the two major '+
      'features of the Uluru - Kata Tjuta National Park. Uluru is '+
      'sacred to the Pitjantjatjara and Yankunytjatjara, the '+
      'Aboriginal people of the area. It has many springs, waterholes, '+
      'rock caves and ancient paintings. Uluru is listed as a World '+
      'Heritage Site.&lt;/p&gt;'+
      '&lt;p&gt;Attribution: Uluru, &lt;a href="https://en.wikipedia.org/w/index.php?title=Uluru&amp;oldid=297882194"&gt;'+
      'https://en.wikipedia.org/w/index.php?title=Uluru&lt;/a&gt; '+
      '(last visited June 22, 2009).&lt;/p&gt;'+
      '&lt;/div&gt;'+
      '&lt;/div&gt;';

  var infowindow = new google.maps.InfoWindow({
      content: contentString
  });

  var marker = new google.maps.Marker({
      position: myLatlng,
      map: map,
      title: 'Uluru (Ayers Rock)'
  });
  google.maps.event.addListener(marker, 'click', function() {
    infowindow.open(map,marker);
  });
}

google.maps.event.addDomListener(window, 'load', initialize);

    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id="map-canvas"&gt;&lt;/div&gt;
  &lt;/body&gt;
&lt;/html&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/topic/211034/google-maps-con-popup-info-window-già-aperta</link><generator>RSS for Node</generator><lastBuildDate>Fri, 27 Nov 2026 08:50:31 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/211034.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Feb 2015 07:11:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to google maps con popup (info window) già aperta on Fri, 13 Feb 2015 10:45:39 GMT]]></title><description><![CDATA[<p dir="auto">C'è un motivo per cui hai postato questa domanda qui e non nella sezione del forum dedicata a Google Maps?</p>
]]></description><link>https://dev.connect.gt/post/1189440</link><guid isPermaLink="true">https://dev.connect.gt/post/1189440</guid><dc:creator><![CDATA[netmassimo]]></dc:creator><pubDate>Fri, 13 Feb 2015 10:45:39 GMT</pubDate></item></channel></rss>