<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Google Maps API 3 – InfoWindows</title>
	<atom:link href="http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/</link>
	<description>A blog about web developement and usability.</description>
	<lastBuildDate>Fri, 30 Jul 2010 15:17:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: cristina</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-15807</link>
		<dc:creator>cristina</dc:creator>
		<pubDate>Thu, 29 Jul 2010 14:55:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-15807</guid>
		<description>@Colin Wiseman
&quot;html&quot; must be setted in markes:
After, &#039;content: &quot;holding...&quot;&#039;, add &#039;html: &quot;content&quot;&#039;
for (var i = 0; i &lt; markers.length; i++) {
var marker = markers[i];
var infowindow = new google.maps.InfoWindow({
content: &quot;holding...&quot;,
html: &quot;content&quot;
});</description>
		<content:encoded><![CDATA[<p>@Colin Wiseman<br />
&#8220;html&#8221; must be setted in markes:<br />
After, &#8216;content: &#8220;holding&#8230;&#8221;&#8216;, add &#8216;html: &#8220;content&#8221;&#8216;<br />
for (var i = 0; i &lt; markers.length; i++) {<br />
var marker = markers[i];<br />
var infowindow = new google.maps.InfoWindow({<br />
content: &quot;holding&#8230;&quot;,<br />
html: &quot;content&quot;<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cristina</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-15806</link>
		<dc:creator>cristina</dc:creator>
		<pubDate>Thu, 29 Jul 2010 14:33:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-15806</guid>
		<description>The code given by Colin Wiseman worked for me.
Thanks!</description>
		<content:encoded><![CDATA[<p>The code given by Colin Wiseman worked for me.<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajeev Jha</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-15571</link>
		<dc:creator>Rajeev Jha</dc:creator>
		<pubDate>Wed, 14 Jul 2010 12:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-15571</guid>
		<description>Hello,

I am able to display content on Info Window by creating InfoWindow object, however i am unable to get default link(e.g. Directions, Search nearby, Saveto &amp; More link). 

I am unable to find any method of InfoWindow object by using that i can show the above utility link in InfoWindow.

Thanks,
Rajeev Jha</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I am able to display content on Info Window by creating InfoWindow object, however i am unable to get default link(e.g. Directions, Search nearby, Saveto &amp; More link). </p>
<p>I am unable to find any method of InfoWindow object by using that i can show the above utility link in InfoWindow.</p>
<p>Thanks,<br />
Rajeev Jha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Google Maps API v3.0 &#8211; Multiple Markers, Multiple Infowindows :you.arenot.me</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-15203</link>
		<dc:creator>Google Maps API v3.0 &#8211; Multiple Markers, Multiple Infowindows :you.arenot.me</dc:creator>
		<pubDate>Tue, 29 Jun 2010 08:56:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-15203</guid>
		<description>[...] http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows" rel="nofollow">http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin Wiseman</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-15202</link>
		<dc:creator>Colin Wiseman</dc:creator>
		<pubDate>Tue, 29 Jun 2010 08:43:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-15202</guid>
		<description>Hello,

I couldn&#039;t get the multiple markers, multiple info windows to work, no matter what was said above.

When in a loop:
&lt;code&gt;
    for (var i = 0; i &lt; markers.length; i++) {
            var marker = markers[i];
            var infowindow = new google.maps.InfoWindow({
                content: &quot;holding...&quot;
            });

            google.maps.event.addListener(marker, &#039;click&#039;, function () {
                infowindow.open(map, maker);
            });
        }
&lt;/code&gt;

This always showed the last marker that was bound to map so the info window always appeared on the last marker.  Bit of a problem really.

After reading http://bit.ly/aEtHk1 it showed me the mistake everyone here has made and the actual solution!

&lt;code&gt;
for (var i = 0; i &lt; markers.length; i++) {
            var marker = markers[i];
            var infowindow = new google.maps.InfoWindow({
                content: &quot;holding...&quot;
            });

            google.maps.event.addListener(marker, &#039;click&#039;, function () {
                &lt;strong&gt;infowindow.setContent(this.html);&lt;/strong&gt;
                infowindow.open(map, &lt;strong&gt;this&lt;/strong&gt;);
            });
        }
&lt;/code&gt;

Changes in bold.  As you have all seen the event fires for each marker, but as you were calling &lt;strong&gt;infowindow.open(map, marker)&lt;/strong&gt; javascript engine&#039;s memory location thingymabob (not good with names) held the last reference to &lt;strong&gt;marker&lt;/strong&gt;.  But you had passed in the marker to the event, so by calling &lt;strong&gt;this&lt;/strong&gt; in place of marker, you get what you are looking for.

Hope this helps someone out.

Colin</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I couldn&#8217;t get the multiple markers, multiple info windows to work, no matter what was said above.</p>
<p>When in a loop:<br />
<code><br />
    for (var i = 0; i &lt; markers.length; i++) {<br />
            var marker = markers[i];<br />
            var infowindow = new google.maps.InfoWindow({<br />
                content: &quot;holding...&quot;<br />
            });</p>
<p>            google.maps.event.addListener(marker, &#039;click&#039;, function () {<br />
                infowindow.open(map, maker);<br />
            });<br />
        }<br />
</code></p>
<p>This always showed the last marker that was bound to map so the info window always appeared on the last marker.  Bit of a problem really.</p>
<p>After reading <a href="http://bit.ly/aEtHk1" rel="nofollow">http://bit.ly/aEtHk1</a> it showed me the mistake everyone here has made and the actual solution!</p>
<p><code><br />
for (var i = 0; i &lt; markers.length; i++) {<br />
            var marker = markers[i];<br />
            var infowindow = new google.maps.InfoWindow({<br />
                content: &quot;holding...&quot;<br />
            });</p>
<p>            google.maps.event.addListener(marker, &#039;click&#039;, function () {<br />
                <strong>infowindow.setContent(this.html);</strong><br />
                infowindow.open(map, <strong>this</strong>);<br />
            });<br />
        }<br />
</code></p>
<p>Changes in bold.  As you have all seen the event fires for each marker, but as you were calling <strong>infowindow.open(map, marker)</strong> javascript engine&#8217;s memory location thingymabob (not good with names) held the last reference to <strong>marker</strong>.  But you had passed in the marker to the event, so by calling <strong>this</strong> in place of marker, you get what you are looking for.</p>
<p>Hope this helps someone out.</p>
<p>Colin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederick Ricaforte</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-15059</link>
		<dc:creator>Frederick Ricaforte</dc:creator>
		<pubDate>Thu, 24 Jun 2010 02:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-15059</guid>
		<description>@mirekh
I think you&#039;re close. You can have multiple variable of marker but you must declare a global infowindow variable. But the the trick is to put the declaration of the infowindow inside a function like this:
&lt;code&gt;
////////////////////////
var iw; // Global InfoWindow
var map; // Global Map

function initialize() {
// map declarations here
iw = new google.maps.InfoWindow();
// for loop
var mymarker = new google.maps.Marker({position:myLatLng,map:map});
createMyInfoWindow(mymarker,&quot;my content&quot;);
// end of for loop
}

function createMyInfoWindow(mymarker,mycontent) {
  	google.maps.event.addListener(mymarker, &#039;click&#039;, function(){iw.setContent(mycontent);iw.open(map, mymarker);});
  }
////////////////////////
&lt;/code&gt;
This is similar to what @Alfred Laggner posted above, although simpler.
Hope this helps!</description>
		<content:encoded><![CDATA[<p>@mirekh<br />
I think you&#8217;re close. You can have multiple variable of marker but you must declare a global infowindow variable. But the the trick is to put the declaration of the infowindow inside a function like this:<br />
<code><br />
////////////////////////<br />
var iw; // Global InfoWindow<br />
var map; // Global Map</p>
<p>function initialize() {<br />
// map declarations here<br />
iw = new google.maps.InfoWindow();<br />
// for loop<br />
var mymarker = new google.maps.Marker({position:myLatLng,map:map});<br />
createMyInfoWindow(mymarker,"my content");<br />
// end of for loop<br />
}</p>
<p>function createMyInfoWindow(mymarker,mycontent) {<br />
  	google.maps.event.addListener(mymarker, 'click', function(){iw.setContent(mycontent);iw.open(map, mymarker);});<br />
  }<br />
////////////////////////<br />
</code><br />
This is similar to what @Alfred Laggner posted above, although simpler.<br />
Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mirekh</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-15052</link>
		<dc:creator>mirekh</dc:creator>
		<pubDate>Wed, 23 Jun 2010 06:36:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-15052</guid>
		<description>Hi Gabriel,

anyway a great tutorial, well done.
 
Can you please clarify how manage a lot of infowindows so that a behaviour is the same as it is in version 2 ?
If I use another variable for each marker (infowindow and content) then I can see another content for each marker but with click on another infowindows the previous one is still open.

If I use one varible of marker, infowindow and content for each marker than the window&#039;s closing work well but I can see only one content.</description>
		<content:encoded><![CDATA[<p>Hi Gabriel,</p>
<p>anyway a great tutorial, well done.</p>
<p>Can you please clarify how manage a lot of infowindows so that a behaviour is the same as it is in version 2 ?<br />
If I use another variable for each marker (infowindow and content) then I can see another content for each marker but with click on another infowindows the previous one is still open.</p>
<p>If I use one varible of marker, infowindow and content for each marker than the window&#8217;s closing work well but I can see only one content.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bronwyn</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-15009</link>
		<dc:creator>Bronwyn</dc:creator>
		<pubDate>Sun, 20 Jun 2010 05:24:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-15009</guid>
		<description>I have a map with mutiple markers and info windows and found your tutorial instrumental in getting this working. I have a sidebar with a list of the places identified and would now like to be able to link to the information window.

My javascript is very basic, how can I do this?

My map is http://www.planetengineering.com.au/maptest/index.html

Bronwyn</description>
		<content:encoded><![CDATA[<p>I have a map with mutiple markers and info windows and found your tutorial instrumental in getting this working. I have a sidebar with a list of the places identified and would now like to be able to link to the information window.</p>
<p>My javascript is very basic, how can I do this?</p>
<p>My map is <a href="http://www.planetengineering.com.au/maptest/index.html" rel="nofollow">http://www.planetengineering.com.au/maptest/index.html</a></p>
<p>Bronwyn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sean</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-14950</link>
		<dc:creator>sean</dc:creator>
		<pubDate>Thu, 17 Jun 2010 15:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-14950</guid>
		<description>Hi there,
I have generated a map with a bunch of markers and ifnoboxes that contain text/addresses etc that are visible. What I am struggling with is the format to add photographs. I have added a field in the phpmysql database (mediumblob) but am unsure wether I provide the url for the picture or what to do next...I am a bit of a noob at this so any help would be great.
Many thanks
Sean</description>
		<content:encoded><![CDATA[<p>Hi there,<br />
I have generated a map with a bunch of markers and ifnoboxes that contain text/addresses etc that are visible. What I am struggling with is the format to add photographs. I have added a field in the phpmysql database (mediumblob) but am unsure wether I provide the url for the picture or what to do next&#8230;I am a bit of a noob at this so any help would be great.<br />
Many thanks<br />
Sean</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-14864</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 14 Jun 2010 22:03:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-14864</guid>
		<description>Hi,

This is a great tutorial! I was able to implement getting multiple markers on my map, but I&#039;m having problems with the InfoWindow passing the correct text to the correct marker. It basically picks the last text that gets presented, and passes it to any marker that is clicked. Javascript is not my forte, and I have it running as echo statements in PHP. Can somebody take a look at this code and help me figure out how to make this work so that each marker gets the correct text? Thanks!

while($row = mysql_fetch_array($result))
{
echo &quot;var marker = new google.maps.Marker({\n&quot;;
echo &quot;   position : new google.maps.LatLng(&quot; . $row[&#039;latitude&#039;] . &quot;,&quot; . $row[&#039;longitude&#039;] . &quot;),\n&quot;;
echo &quot;   map : map,\n&quot;;
echo &quot;   icon : &#039;images/photo.png&#039;\n&quot;;
echo &quot;});\n&quot;;
echo &quot;var infowindow = new google.maps.InfoWindow({\n&quot;;
echo &quot;   content : &#039;&quot; . addslashes($row[&#039;description&#039;]) . &quot;&#039;\n&quot;;
echo &quot;})\n&quot;;
echo &quot;google.maps.event.addListener(marker, &#039;click&#039;, function() {\n&quot;;
echo &quot;   infowindow.open(map, marker);\n&quot;;
echo &quot;})\n&quot;;
}


This code gives the following results : 

var marker = new google.maps.Marker({
   position : new google.maps.LatLng(32.396989,-111.004427),
   map : map,
   icon : &#039;images/photo.png&#039;
});
var infowindow = new google.maps.InfoWindow({
   content : &#039;Hill located in West Lambert Lane Park. Great 360 views of Tucson and the surrounding area.&#039;
})
google.maps.event.addListener(marker, &#039;click&#039;, function() {
   infowindow.open(map, marker);
})
var marker = new google.maps.Marker({
   position : new google.maps.LatLng(32.420879,-110.982298),
   map : map,
   icon : &#039;images/photo.png&#039;
});
var infowindow = new google.maps.InfoWindow({
   content : &#039;Another hillside location in Oro Valley. Great views to the west for storms in the valley.&#039;
})
google.maps.event.addListener(marker, &#039;click&#039;, function() {
   infowindow.open(map, marker);
})

Which is good, but only the last content text gets passed to any marker I click on. Thanks for the look!

Mark</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>This is a great tutorial! I was able to implement getting multiple markers on my map, but I&#8217;m having problems with the InfoWindow passing the correct text to the correct marker. It basically picks the last text that gets presented, and passes it to any marker that is clicked. Javascript is not my forte, and I have it running as echo statements in <acronym title="Pre-Hypertext Processing">PHP</acronym>. Can somebody take a look at this code and help me figure out how to make this work so that each marker gets the correct text? Thanks!</p>
<p>while($row = mysql_fetch_array($result))<br />
{<br />
echo &#8220;var marker = new google.maps.Marker({\n&#8221;;<br />
echo &#8221;   position : new google.maps.LatLng(&#8221; . $row['latitude'] . &#8220;,&#8221; . $row['longitude'] . &#8220;),\n&#8221;;<br />
echo &#8221;   map : map,\n&#8221;;<br />
echo &#8221;   icon : &#8216;images/photo.png&#8217;\n&#8221;;<br />
echo &#8220;});\n&#8221;;<br />
echo &#8220;var infowindow = new google.maps.InfoWindow({\n&#8221;;<br />
echo &#8221;   content : &#8216;&#8221; . addslashes($row['description']) . &#8220;&#8216;\n&#8221;;<br />
echo &#8220;})\n&#8221;;<br />
echo &#8220;google.maps.event.addListener(marker, &#8216;click&#8217;, function() {\n&#8221;;<br />
echo &#8221;   infowindow.open(map, marker);\n&#8221;;<br />
echo &#8220;})\n&#8221;;<br />
}</p>
<p>This code gives the following results : </p>
<p>var marker = new google.maps.Marker({<br />
   position : new google.maps.LatLng(32.396989,-111.004427),<br />
   map : map,<br />
   icon : &#8216;images/photo.png&#8217;<br />
});<br />
var infowindow = new google.maps.InfoWindow({<br />
   content : &#8216;Hill located in West Lambert Lane Park. Great 360 views of Tucson and the surrounding area.&#8217;<br />
})<br />
google.maps.event.addListener(marker, &#8216;click&#8217;, function() {<br />
   infowindow.open(map, marker);<br />
})<br />
var marker = new google.maps.Marker({<br />
   position : new google.maps.LatLng(32.420879,-110.982298),<br />
   map : map,<br />
   icon : &#8216;images/photo.png&#8217;<br />
});<br />
var infowindow = new google.maps.InfoWindow({<br />
   content : &#8216;Another hillside location in Oro Valley. Great views to the west for storms in the valley.&#8217;<br />
})<br />
google.maps.event.addListener(marker, &#8216;click&#8217;, function() {<br />
   infowindow.open(map, marker);<br />
})</p>
<p>Which is good, but only the last content text gets passed to any marker I click on. Thanks for the look!</p>
<p>Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-14824</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 13 Jun 2010 02:03:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-14824</guid>
		<description>I encountered the same problem as others when using a for loop to create events for markers.  Perhaps it is an issue with the API, but regardless, I remember from my Java days that funny things can happen when references to things are passed around and you don&#039;t know what exactly is being done.

But anyhow, I was speculating that with the unwanted behavior we are all getting the event thingy-ma-bobber must work as follows:

1. You register the event
2. Something somewhere stores that you registered an event to that item
3. For the action that it takes upon click it stores a function pointer
*4.* For the arguments to this function, it stores a pointer to the arguments.

This means that when you put the function in a for loop as so:

for(var i=0; i&lt;arr.length;++i){
  google.maps.events.addListener(arr[i],&#039;click&#039;, function(){
    ActionFunction(arr[i]);
  });
}

It must be the case that ActionFunction is still in the same scope, meaning that it still points to the same function with the same argument.  This means that every time the for loop iterates, it gives it a pointer to the same function with the same arguments, and you only have the affect of changing what those arguments (which are just boxes that hold pointers) point to.  Therefore, you get what was pointed to by those parameters on the last iteration.  And thus, with the solution that Ricky came up with, it calls a regular function first, meaning that pointers to the parameters of this function are pushed on the stack on each iteration and the function is called.  Each time the event is registered the last even registration is completely out of scope, and thus the API is not able to take whatever shortcut it did before.

Note:  This is just an attempt for me to rationalize the behavior of the API and is complete speculation on my part.  I actually have no clue and am in fact not fully satisfied with this explanation as I feel that there is a whole in my logic somewhere...

So, just curious, have you ever encountered an issue like this when using the V3 API?  For those of you who used the version two API&#039;s, has anyone encountered this issue?  I am just wondering if this is the intended behavior, because it seems so unintuitive...</description>
		<content:encoded><![CDATA[<p>I encountered the same problem as others when using a for loop to create events for markers.  Perhaps it is an issue with the <acronym title="Application Programming Interface">API</acronym>, but regardless, I remember from my Java days that funny things can happen when references to things are passed around and you don&#8217;t know what exactly is being done.</p>
<p>But anyhow, I was speculating that with the unwanted behavior we are all getting the event thingy-ma-bobber must work as follows:</p>
<p>1. You register the event<br />
2. Something somewhere stores that you registered an event to that item<br />
3. For the action that it takes upon click it stores a function pointer<br />
*4.* For the arguments to this function, it stores a pointer to the arguments.</p>
<p>This means that when you put the function in a for loop as so:</p>
<p>for(var i=0; i&lt;arr.length;++i){<br />
  google.maps.events.addListener(arr[i],&#039;click&#039;, function(){<br />
    ActionFunction(arr[i]);<br />
  });<br />
}</p>
<p>It must be the case that ActionFunction is still in the same scope, meaning that it still points to the same function with the same argument.  This means that every time the for loop iterates, it gives it a pointer to the same function with the same arguments, and you only have the affect of changing what those arguments (which are just boxes that hold pointers) point to.  Therefore, you get what was pointed to by those parameters on the last iteration.  And thus, with the solution that Ricky came up with, it calls a regular function first, meaning that pointers to the parameters of this function are pushed on the stack on each iteration and the function is called.  Each time the event is registered the last even registration is completely out of scope, and thus the <acronym title="Application Programming Interface">API</acronym> is not able to take whatever shortcut it did before.</p>
<p>Note:  This is just an attempt for me to rationalize the behavior of the <acronym title="Application Programming Interface">API</acronym> and is complete speculation on my part.  I actually have no clue and am in fact not fully satisfied with this explanation as I feel that there is a whole in my logic somewhere&#8230;</p>
<p>So, just curious, have you ever encountered an issue like this when using the V3 <acronym title="Application Programming Interface">API</acronym>?  For those of you who used the version two <acronym title="Application Programming Interface">API</acronym>&#039;s, has anyone encountered this issue?  I am just wondering if this is the intended behavior, because it seems so unintuitive&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederick Ricaforte</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-14795</link>
		<dc:creator>Frederick Ricaforte</dc:creator>
		<pubDate>Fri, 11 Jun 2010 03:09:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-14795</guid>
		<description>@Rene: If you have not found an answer to your question, probably you can look into &lt;a href=&quot;http://code.google.com/apis/maps/documentation/javascript/examples/icon-complex.html&quot; title=&quot;complex overlay example&quot; rel=&quot;nofollow&quot;&gt;complex overlay example&lt;/a&gt;. Just play with the image and location a little then add some extra info with the location then you should have your multiple custom markers. Finally follow the example above to add in the infowindows. Hope this helps</description>
		<content:encoded><![CDATA[<p>@Rene: If you have not found an answer to your question, probably you can look into <a href="http://code.google.com/apis/maps/documentation/javascript/examples/icon-complex.html" title="complex overlay example" rel="nofollow">complex overlay example</a>. Just play with the image and location a little then add some extra info with the location then you should have your multiple custom markers. Finally follow the example above to add in the infowindows. Hope this helps</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rene</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-14779</link>
		<dc:creator>Rene</dc:creator>
		<pubDate>Wed, 09 Jun 2010 12:27:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-14779</guid>
		<description>Hi,
I’m not a JavaScript man but can recognise simple statements and repeat them to expand on existing code. Can you direct me to a sample where I can add multiple custom markers plus an info window for each marker. I have found all this individually but I&#039;m not able to combine the features.
I’ll be internally grateful after devoting 3 days on this... 
Cheers,
Rene</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I’m not a JavaScript man but can recognise simple statements and repeat them to expand on existing code. Can you direct me to a sample where I can add multiple custom markers plus an info window for each marker. I have found all this individually but I&#8217;m not able to combine the features.<br />
I’ll be internally grateful after devoting 3 days on this&#8230;<br />
Cheers,<br />
Rene</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-14762</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Tue, 08 Jun 2010 19:57:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-14762</guid>
		<description>Maybe I am slow.....but I can&#039;t seem to get the concept of what I need to add for multiple markers.  Can someone provide a link with an example?    Thank you very much!</description>
		<content:encoded><![CDATA[<p>Maybe I am slow&#8230;..but I can&#8217;t seem to get the concept of what I need to add for multiple markers.  Can someone provide a link with an example?    Thank you very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederick Ricaforte</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-14752</link>
		<dc:creator>Frederick Ricaforte</dc:creator>
		<pubDate>Tue, 08 Jun 2010 01:28:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-14752</guid>
		<description>Infowindow doesn&#039;t really look nice in a small map, basically the rounded corners and the balloon tip takes so much space. Is there a way to use the smaller square balloon in V3?

Although there are available examples to replace the infowindow, but most of the solutions fixed size images which are not as flexible as the current infowindow.

Hope you could share some of your tricks to solve this. Thanks!</description>
		<content:encoded><![CDATA[<p>Infowindow doesn&#8217;t really look nice in a small map, basically the rounded corners and the balloon tip takes so much space. Is there a way to use the smaller square balloon in V3?</p>
<p>Although there are available examples to replace the infowindow, but most of the solutions fixed size images which are not as flexible as the current infowindow.</p>
<p>Hope you could share some of your tricks to solve this. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricky</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-14661</link>
		<dc:creator>Ricky</dc:creator>
		<pubDate>Wed, 02 Jun 2010 04:45:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-14661</guid>
		<description>Thank you for this tutorial. It was really helpful.

I just want to share something. 

I created a markerArray variable to store the markers in the map. I also had the infoArray variable to store all the associated infowindow. (All these were done using PHP and mySql).

I tried to loop through the action listener so as to reduce the code. But I encountered the same problem as stated above. The infowindow is displayed only for the last marker. But I found a solution to this problem. And that is by adding a function inside the  loop itself.


After adding all the markers from the database, I looped the markerArray and called the function addInfo with the parameters markerArray[x],infoArray[x],map.

Inside this function I added the addListener. And to my surprise, it worked.

Lastly, thanks for this tutorial. It was really helpful.</description>
		<content:encoded><![CDATA[<p>Thank you for this tutorial. It was really helpful.</p>
<p>I just want to share something. </p>
<p>I created a markerArray variable to store the markers in the map. I also had the infoArray variable to store all the associated infowindow. (All these were done using <acronym title="Pre-Hypertext Processing">PHP</acronym> and mySql).</p>
<p>I tried to loop through the action listener so as to reduce the code. But I encountered the same problem as stated above. The infowindow is displayed only for the last marker. But I found a solution to this problem. And that is by adding a function inside the  loop itself.</p>
<p>After adding all the markers from the database, I looped the markerArray and called the function addInfo with the parameters markerArray[x],infoArray[x],map.</p>
<p>Inside this function I added the addListener. And to my surprise, it worked.</p>
<p>Lastly, thanks for this tutorial. It was really helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-13625</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Mon, 12 Apr 2010 21:07:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-13625</guid>
		<description>&lt;strong&gt;&lt;/em&gt;Martel:&lt;/em&gt;&lt;/strong&gt; It&#039;s really easy to add photos since you can add any html you like instead of the text hello world. Just add an &lt;img&gt; as the value for the content property like this:

&lt;code&gt;
var infowindow = new google.maps.InfoWindow({  
&#160;&#160;content: &#039;&lt;img src=&quot;url/to/your/image/&quot; alt=&quot;&quot; /&gt;&#039;
}); 
&lt;/code&gt;

&lt;strong&gt;&lt;em&gt;Todd:&lt;/em&gt;&lt;/strong&gt; I agree with you that InfoWindow tabs is a very appealing feature in API v2. Start an uproar in the &lt;a href=&quot;http://groups.google.com/group/google-maps-js-api-v3&quot; rel=&quot;nofollow&quot;&gt;API forum&lt;/a&gt;, and maybe the API team will add it in v3! :-) You could also &lt;a href=&quot;http://code.google.com/p/gmaps-api-issues/issues/list?can=2&amp;q=apitype:Javascript3&amp;colspec=ID+Type+Status+Introduced+Fixed+Summary+Internal+Stars&amp;cells=tiles&quot; rel=&quot;nofollow&quot;&gt;add a feature request&lt;/a&gt;. The API is still in Beta so everything is possible.</description>
		<content:encoded><![CDATA[<p><strong>Martel:</strong> It&#8217;s really easy to add photos since you can add any html you like instead of the text hello world. Just add an &lt;img&gt; as the value for the content property like this:</p>
<p><code><br />
var infowindow = new google.maps.InfoWindow({<br />
&nbsp;&nbsp;content: '&lt;img src="url/to/your/image/" alt="" /&gt;'<br />
});<br />
</code></p>
<p><strong><em>Todd:</em></strong> I agree with you that InfoWindow tabs is a very appealing feature in <acronym title="Application Programming Interface">API</acronym> v2. Start an uproar in the <a href="http://groups.google.com/group/google-maps-js-api-v3" rel="nofollow"><acronym title="Application Programming Interface">API</acronym> forum</a>, and maybe the <acronym title="Application Programming Interface">API</acronym> team will add it in v3! <img src='http://www.svennerberg.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  You could also <a href="http://code.google.com/p/gmaps-api-issues/issues/list?can=2&#038;q=apitype:Javascript3&#038;colspec=ID+Type+Status+Introduced+Fixed+Summary+Internal+Stars&#038;cells=tiles" rel="nofollow">add a feature request</a>. The <acronym title="Application Programming Interface">API</acronym> is still in Beta so everything is possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-13615</link>
		<dc:creator>Todd</dc:creator>
		<pubDate>Mon, 12 Apr 2010 09:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-13615</guid>
		<description>I think I speak for most people, that one of the richest features of the bespoke development of GoogleMaps API was TABS.

Pamela&#039;s version is functional, but visually non appealing with a lot of lost space.

Personally... I&#039;ll be sticking with v2 (reluctantly).</description>
		<content:encoded><![CDATA[<p>I think I speak for most people, that one of the richest features of the bespoke development of GoogleMaps <acronym title="Application Programming Interface">API</acronym> was TABS.</p>
<p>Pamela&#8217;s version is functional, but visually non appealing with a lot of lost space.</p>
<p>Personally&#8230; I&#8217;ll be sticking with v2 (reluctantly).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: martel</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-13515</link>
		<dc:creator>martel</dc:creator>
		<pubDate>Tue, 06 Apr 2010 22:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-13515</guid>
		<description>hello; ok we can see infowindows when we clicked the marker and we can add text for example &quot;hello world&quot;. my question is how can i add photo or image into infowindow. this mean when i click the marker infowindow is opening and i can see the photo which i add it before i see alot of site like this. please help me to add photo to infowindows 
thnx a lot..!</description>
		<content:encoded><![CDATA[<p>hello; ok we can see infowindows when we clicked the marker and we can add text for example &#8220;hello world&#8221;. my question is how can i add photo or image into infowindow. this mean when i click the marker infowindow is opening and i can see the photo which i add it before i see alot of site like this. please help me to add photo to infowindows<br />
thnx a lot..!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alfred Laggner</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-13495</link>
		<dc:creator>Alfred Laggner</dc:creator>
		<pubDate>Mon, 05 Apr 2010 11:56:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-13495</guid>
		<description>Hi Gabriel,
I am new to Java and I am trying to run this map with infowindow going away after you click another. If I am creating infowindow new every time its works but only keeping all the windows. my issue seems to be &#039;infowindow.setcontent(itext);&#039;
please help me out, I am sure it is just a little thing.
Thank you.
Alfred

 
var infowindow;  
function initialize() {
  var myOptions = {
    zoom: 6,
    center: new google.maps.LatLng(-42.945397, 171.565676),
    mapTypeId: google.maps.MapTypeId.ROADMAP
  }
  var map = new google.maps.Map(document.getElementById(&quot;map_canvas&quot;),
                                myOptions);

	setMarkers(map, days);  
    infowindow = new google.maps.InfoWindow({ content: &quot;blabla&quot;});

}
 
  
  var days = [
  [&#039;Day 1: Kaikoura&#039;, -42.416667, 173.683333,1,&#039;&lt;a href=&quot;http://en.wikipedia.org/wiki/Kaikoura&quot; rel=&quot;nofollow&quot;&gt; Click here for Wikipedia&lt;/a&gt;&#039;],
  [&#039;Day 2-4: Nelson Lake&#039;, -41.819167, 172.8375, 2,&#039;&lt;a href=&quot;http://en.wikipedia.org/wiki/Nelson_Lakes_National_Park&quot; rel=&quot;nofollow&quot;&gt; Click here for Wikipedia&lt;/a&gt;&#039;],
  [&#039;Day 5: Paparoa &#039;,-42.083333, 171.5, 3,&#039;&lt;a href=&quot;http://en.wikipedia.org/wiki/Paparoa&quot; rel=&quot;nofollow&quot;&gt; Click here for Wikipedia&lt;/a&gt;&#039;],	
  [&#039;Day 6: Okatiro &#039;,-43.2, 170.216667, 4,&#039;&lt;a href=&quot;http://en.wikipedia.org/wiki/Okatiro&quot; rel=&quot;nofollow&quot;&gt; Click here for Wikipedia&lt;/a&gt;&#039;],	
  [&#039;Day 7: Franz Josef Glacier&#039;, -43.466997, 170.191528, 5,&#039;&lt;a href=&quot;http://en.wikipedia.org/wiki/Franz_Josef_Glacier&quot; rel=&quot;nofollow&quot;&gt; Click here for Wikipedia&lt;/a&gt;&#039;],
  [&#039;Day 8-9: Queenstown &#039;,-45.031111, 168.6625, 6,&#039;&lt;a href=&quot;http://en.wikipedia.org/wiki/Queenstown&quot; rel=&quot;nofollow&quot;&gt; Click here for Wikipedia&lt;/a&gt;&#039;],	
  [&#039;Day 10: Hollyford Track &#039;,-44.7350590018039,168.208030237917 , 7,&#039;&lt;a href=&quot;http://en.wikipedia.org/wiki/Hollyford_Track&quot; rel=&quot;nofollow&quot;&gt; Click here for Wikipedia&lt;/a&gt;&#039;], 
  [&#039;Day 11: Milford Sound &#039;,-44.675, 167.929444 , 8,&#039;&lt;a href=&quot;http://en.wikipedia.org/wiki/Milford_Sound&quot; rel=&quot;nofollow&quot;&gt; Click here for Wikipedia on Milford Sound&lt;/a&gt;&#039;],
  [&#039;Day 12: Lake Pukaki &#039;,-44.116667, 170.166667, 9,&#039;&lt;a href=&quot;http://en.wikipedia.org/wiki/Lake_Pukaki&quot; rel=&quot;nofollow&quot;&gt; Click here for Wikipedia on Lake Pukaki&lt;/a&gt;&#039;], 
   [&#039;Day 13: Mt Cook National Park &#039;,-43.733333, 170.1 , 10,&#039;&lt;a href=&quot;http://en.wikipedia.org/wiki/Aoraki/Mount_Cook_National_Park&quot; rel=&quot;nofollow&quot;&gt; Click here for Wikipedia on Mount Cook National Park&lt;/a&gt;&#039;],
   [&#039;Day 14: Christchurch &#039;,-43.53, 172.620278 , 11,&#039;&lt;a href=&quot;http://en.wikipedia.org/wiki/Christchurch&quot; rel=&quot;nofollow&quot;&gt; Click here for Wikipedia&lt;/a&gt;&#039;]
 ];
  

function setMarkers(map, locations) {
  // Add markers to the map

  for (var i = 0; i &lt; locations.length; i++) {
    var beach = locations[i];
    var myLatLng = new google.maps.LatLng(beach[1], beach[2]);
    var marker = new google.maps.Marker({
        position: myLatLng,
        map: map,
		title: beach[0],
        zIndex: beach[3]
    });
	attachSecretMessage(map,marker,beach[4]); 
  }

};
function attachSecretMessage(map,marker,itext) {
//    var infowindow = new google.maps.InfoWindow(
//  { content: itext}); 
    google.maps.event.addListener(marker, &#039;click&#039;, function() {
	infowindow.setcontent(itext);
//	infowindow.setPosition(marker);
    infowindow.open(map,marker);

  });
};
//function attachSecretMessage(map,marker,itext) {
//  var infowindow = new google.maps.InfoWindow(
//      { content: itext
//      });
//    google.maps.event.addListener(marker, &#039;click&#039;, function() {
//    infowindow.open(map,marker);
//  });
//};

</description>
		<content:encoded><![CDATA[<p>Hi Gabriel,<br />
I am new to Java and I am trying to run this map with infowindow going away after you click another. If I am creating infowindow new every time its works but only keeping all the windows. my issue seems to be &#8216;infowindow.setcontent(itext);&#8217;<br />
please help me out, I am sure it is just a little thing.<br />
Thank you.<br />
Alfred</p>
<p>var infowindow;<br />
function initialize() {<br />
  var myOptions = {<br />
    zoom: 6,<br />
    center: new google.maps.LatLng(-42.945397, 171.565676),<br />
    mapTypeId: google.maps.MapTypeId.ROADMAP<br />
  }<br />
  var map = new google.maps.Map(document.getElementById(&#8220;map_canvas&#8221;),<br />
                                myOptions);</p>
<p>	setMarkers(map, days);<br />
    infowindow = new google.maps.InfoWindow({ content: &#8220;blabla&#8221;});</p>
<p>}</p>
<p>  var days = [<br />
  ['Day 1: Kaikoura', -42.416667, 173.683333,1,'<a href="http://en.wikipedia.org/wiki/Kaikoura" rel="nofollow"> Click here for Wikipedia</a>'],<br />
  ['Day 2-4: Nelson Lake', -41.819167, 172.8375, 2,'<a href="http://en.wikipedia.org/wiki/Nelson_Lakes_National_Park" rel="nofollow"> Click here for Wikipedia</a>'],<br />
  ['Day 5: Paparoa ',-42.083333, 171.5, 3,'<a href="http://en.wikipedia.org/wiki/Paparoa" rel="nofollow"> Click here for Wikipedia</a>'],<br />
  ['Day 6: Okatiro ',-43.2, 170.216667, 4,'<a href="http://en.wikipedia.org/wiki/Okatiro" rel="nofollow"> Click here for Wikipedia</a>'],<br />
  ['Day 7: Franz Josef Glacier', -43.466997, 170.191528, 5,'<a href="http://en.wikipedia.org/wiki/Franz_Josef_Glacier" rel="nofollow"> Click here for Wikipedia</a>'],<br />
  ['Day 8-9: Queenstown ',-45.031111, 168.6625, 6,'<a href="http://en.wikipedia.org/wiki/Queenstown" rel="nofollow"> Click here for Wikipedia</a>'],<br />
  ['Day 10: Hollyford Track ',-44.7350590018039,168.208030237917 , 7,'<a href="http://en.wikipedia.org/wiki/Hollyford_Track" rel="nofollow"> Click here for Wikipedia</a>'],<br />
  ['Day 11: Milford Sound ',-44.675, 167.929444 , 8,'<a href="http://en.wikipedia.org/wiki/Milford_Sound" rel="nofollow"> Click here for Wikipedia on Milford Sound</a>'],<br />
  ['Day 12: Lake Pukaki ',-44.116667, 170.166667, 9,'<a href="http://en.wikipedia.org/wiki/Lake_Pukaki" rel="nofollow"> Click here for Wikipedia on Lake Pukaki</a>'],<br />
   ['Day 13: Mt Cook National Park ',-43.733333, 170.1 , 10,'<a href="http://en.wikipedia.org/wiki/Aoraki/Mount_Cook_National_Park" rel="nofollow"> Click here for Wikipedia on Mount Cook National Park</a>'],<br />
   ['Day 14: Christchurch ',-43.53, 172.620278 , 11,'<a href="http://en.wikipedia.org/wiki/Christchurch" rel="nofollow"> Click here for Wikipedia</a>']<br />
 ];</p>
<p>function setMarkers(map, locations) {<br />
  // Add markers to the map</p>
<p>  for (var i = 0; i &lt; locations.length; i++) {<br />
    var beach = locations[i];<br />
    var myLatLng = new google.maps.LatLng(beach[1], beach[2]);<br />
    var marker = new google.maps.Marker({<br />
        position: myLatLng,<br />
        map: map,<br />
		title: beach[0],<br />
        zIndex: beach[3]<br />
    });<br />
	attachSecretMessage(map,marker,beach[4]);<br />
  }</p>
<p>};<br />
function attachSecretMessage(map,marker,itext) {<br />
//    var infowindow = new google.maps.InfoWindow(<br />
//  { content: itext});<br />
    google.maps.event.addListener(marker, &#039;click&#039;, function() {<br />
	infowindow.setcontent(itext);<br />
//	infowindow.setPosition(marker);<br />
    infowindow.open(map,marker);</p>
<p>  });<br />
};<br />
//function attachSecretMessage(map,marker,itext) {<br />
//  var infowindow = new google.maps.InfoWindow(<br />
//      { content: itext<br />
//      });<br />
//    google.maps.event.addListener(marker, &#039;click&#039;, function() {<br />
//    infowindow.open(map,marker);<br />
//  });<br />
//};</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Teo Maragakis</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-13218</link>
		<dc:creator>Teo Maragakis</dc:creator>
		<pubDate>Sat, 20 Mar 2010 16:09:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-13218</guid>
		<description>Can we call Javascript from inside (the content) of an infowindow?</description>
		<content:encoded><![CDATA[<p>Can we call Javascript from inside (the content) of an infowindow?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-12512</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Sat, 27 Feb 2010 11:45:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-12512</guid>
		<description>&lt;strong&gt;&lt;em&gt;Dad00:&lt;/em&gt;&lt;/strong&gt; No there&#039;s currently no tabbed InfoWindows in API 3. There are however different ways of implementing 3d party tabs in an InfoWindow. Check out &lt;a href=&quot;http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/268b788093a3fbac/e9b9fa8531922126?lnk=gst&amp;q=tabbed#e9b9fa8531922126&quot; rel=&quot;nofollow&quot;&gt;this discussion&lt;/a&gt; in the Google Maps JavaScript API v3 group.

&lt;strong&gt;&lt;em&gt;Jason:&lt;/em&gt;&lt;/strong&gt; There&#039;s no onClose event to my knowledge. I think you are right there are definitely cases where an onClose event would be called for.</description>
		<content:encoded><![CDATA[<p><strong><em>Dad00:</em></strong> No there&#8217;s currently no tabbed InfoWindows in <acronym title="Application Programming Interface">API</acronym> 3. There are however different ways of implementing 3d party tabs in an InfoWindow. Check out <a href="http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/268b788093a3fbac/e9b9fa8531922126?lnk=gst&#038;q=tabbed#e9b9fa8531922126" rel="nofollow">this discussion</a> in the Google Maps JavaScript <acronym title="Application Programming Interface">API</acronym> v3 group.</p>
<p><strong><em>Jason:</em></strong> There&#8217;s no onClose event to my knowledge. I think you are right there are definitely cases where an onClose event would be called for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-12434</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 24 Feb 2010 19:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-12434</guid>
		<description>Does the v3 InfoWindow not have some sort of &#039;onClose event&#039;?  I&#039;m aware of the &#039;closeclick&#039; event but I want to trigger a function whenever the infowindow is closed by any means (clicking the x or programatically).</description>
		<content:encoded><![CDATA[<p>Does the v3 InfoWindow not have some sort of &#8216;onClose event&#8217;?  I&#8217;m aware of the &#8216;closeclick&#8217; event but I want to trigger a function whenever the infowindow is closed by any means (clicking the x or programatically).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dad00</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-12360</link>
		<dc:creator>Dad00</dc:creator>
		<pubDate>Mon, 22 Feb 2010 19:47:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-12360</guid>
		<description>Does API V3 will let us to use tabbed infowindows ? I really need this !</description>
		<content:encoded><![CDATA[<p>Does <acronym title="Application Programming Interface">API</acronym> V3 will let us to use tabbed infowindows ? I really need this !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-12345</link>
		<dc:creator>Dick</dc:creator>
		<pubDate>Sun, 21 Feb 2010 22:08:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-12345</guid>
		<description>Hello again,

I tried to link an information window to a polygon in the same manner as for a marker, but failed. Can you see here http://liftstol.se/test.htm what I&#039;m doing wrong?

Thank you in advance!

// Dick</description>
		<content:encoded><![CDATA[<p>Hello again,</p>
<p>I tried to link an information window to a polygon in the same manner as for a marker, but failed. Can you see here <a href="http://liftstol.se/test.htm" rel="nofollow">http://liftstol.se/test.htm</a> what I&#8217;m doing wrong?</p>
<p>Thank you in advance!</p>
<p>// Dick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Teo Maragakis</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-12341</link>
		<dc:creator>Teo Maragakis</dc:creator>
		<pubDate>Sun, 21 Feb 2010 19:54:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-12341</guid>
		<description>Hwy man, I am trying to do the thing you said but I cannot :( Could you make the following comments code that would work?

function markerselect(id) {

map.panTo(markers[id].position);

// if tempinfowindow exists close it or whatever
// if it does not exist make it have the contents of infowindows[id]

tempinfowindow.open(map, markers[id]);
}

Thanks in advanced :)</description>
		<content:encoded><![CDATA[<p>Hwy man, I am trying to do the thing you said but I cannot <img src='http://www.svennerberg.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Could you make the following comments code that would work?</p>
<p>function markerselect(id) {</p>
<p>map.panTo(markers[id].position);</p>
<p>// if tempinfowindow exists close it or whatever<br />
// if it does not exist make it have the contents of infowindows[id]</p>
<p>tempinfowindow.open(map, markers[id]);<br />
}</p>
<p>Thanks in advanced <img src='http://www.svennerberg.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wzhao</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-12271</link>
		<dc:creator>Wzhao</dc:creator>
		<pubDate>Thu, 18 Feb 2010 20:58:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-12271</guid>
		<description>Does V3 support tabbed InfoWindow? I use openInfoWindowTabsHtml in V2. I hope V3 has the similar feature.</description>
		<content:encoded><![CDATA[<p>Does V3 support tabbed InfoWindow? I use openInfoWindowTabsHtml in V2. I hope V3 has the similar feature.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-12109</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Thu, 11 Feb 2010 21:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-12109</guid>
		<description>&lt;strong&gt;&lt;em&gt;Dick:&lt;/em&gt;&lt;/strong&gt; That&#039;s is entirely possible.</description>
		<content:encoded><![CDATA[<p><strong><em>Dick:</em></strong> That&#8217;s is entirely possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-12099</link>
		<dc:creator>Dick</dc:creator>
		<pubDate>Thu, 11 Feb 2010 01:23:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-12099</guid>
		<description>Is it possible to have a infowindow connected to a polygon?</description>
		<content:encoded><![CDATA[<p>Is it possible to have a infowindow connected to a polygon?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Koli</title>
		<link>http://www.svennerberg.com/2009/09/google-maps-api-3-infowindows/comment-page-1/#comment-11204</link>
		<dc:creator>Koli</dc:creator>
		<pubDate>Sun, 17 Jan 2010 09:43:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2208#comment-11204</guid>
		<description>Hello,

I like the way that V3 is implemented in JS, but I have problem to change the layout of InfoWindow, because it has no longer the second parameter (ID) like in V2
marker.openExtInfoWindow(map, ElementID,...).
And now I can not make any CSS to change the layout of InfoWindow. 
When I search the code I found that the top tag of InfoWindow is  so max. what I can do is define some style for this class and child tags, but there is no diffenrence between the top left and top right corner divs (no id or class). 
Any suggestions how to solve this problem or should I better return to V2 coding?</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I like the way that V3 is implemented in <acronym title="JavaScript">JS</acronym>, but I have problem to change the layout of InfoWindow, because it has no longer the second parameter (ID) like in V2<br />
marker.openExtInfoWindow(map, ElementID,&#8230;).<br />
And now I can not make any <acronym title="Cascading Style Sheets">CSS</acronym> to change the layout of InfoWindow.<br />
When I search the code I found that the top tag of InfoWindow is  so max. what I can do is define some style for this class and child tags, but there is no diffenrence between the top left and top right corner divs (no id or class).<br />
Any suggestions how to solve this problem or should I better return to V2 coding?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
