<?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 &#8211; Markers</title>
	<atom:link href="http://www.svennerberg.com/2009/07/google-maps-api-3-markers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/</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: blindfish</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-15457</link>
		<dc:creator>blindfish</dc:creator>
		<pubDate>Fri, 09 Jul 2010 12:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-15457</guid>
		<description>Thanks!  This is a really useful article.  I&#039;ve now managed to read data from an XML file and display markers based on categories, with options to show and hide each category.  I&#039;m currently not using MarkerManager to manage my markers (it didn&#039;t seem to work happily with my code), but instead have added a listener to each marker to determine whether it is displayed at any given zoom level...

That doesn&#039;t seem entirely efficient to me as I&#039;m assuming that markers that are not visible in the map area at a given zoom level (i.e. they&#039;re off screen) are still using resources.  I guess I&#039;ll have to persevere with MarkerManager in order to address this; assuming the map renderer doesn&#039;t handle it?

I have one question that I haven&#039;t seen addressed anywhere yet:  Roughly how many markers can the system handle/display at any one time?  From the MarkerManager documentation it sounds like it might be up to 200...  Are there any recommended limits we should stick to?

I&#039;m still at the research stage and don&#039;t know how much data I&#039;m going to be working with, so just want some idea of how lazy I can be with optimisation ;)</description>
		<content:encoded><![CDATA[<p>Thanks!  This is a really useful article.  I&#8217;ve now managed to read data from an <acronym title="eXtensible Markup Language">XML</acronym> file and display markers based on categories, with options to show and hide each category.  I&#8217;m currently not using MarkerManager to manage my markers (it didn&#8217;t seem to work happily with my code), but instead have added a listener to each marker to determine whether it is displayed at any given zoom level&#8230;</p>
<p>That doesn&#8217;t seem entirely efficient to me as I&#8217;m assuming that markers that are not visible in the map area at a given zoom level (i.e. they&#8217;re off screen) are still using resources.  I guess I&#8217;ll have to persevere with MarkerManager in order to address this; assuming the map renderer doesn&#8217;t handle it?</p>
<p>I have one question that I haven&#8217;t seen addressed anywhere yet:  Roughly how many markers can the system handle/display at any one time?  From the MarkerManager documentation it sounds like it might be up to 200&#8230;  Are there any recommended limits we should stick to?</p>
<p>I&#8217;m still at the research stage and don&#8217;t know how much data I&#8217;m going to be working with, so just want some idea of how lazy I can be with optimisation <img src='http://www.svennerberg.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wayne Sallee</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-15212</link>
		<dc:creator>Wayne Sallee</dc:creator>
		<pubDate>Tue, 29 Jun 2010 18:14:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-15212</guid>
		<description>&lt;code&gt;
 20. April 27th, 2010 at 6.31 by Gabriel Svennerberg &#124; Author comment

    Mike: After experimenting a bit I found that the property clickable needs to be set to true in order for the title to work.
&lt;/code&gt;

So shouldn&#039;t it be changed to &quot;clickable&quot; in the instructions?

Wayne Sallee
Wayne@WayneSallee.com</description>
		<content:encoded><![CDATA[<p><code><br />
 20. April 27th, 2010 at 6.31 by Gabriel Svennerberg | Author comment</p>
<p>    Mike: After experimenting a bit I found that the property clickable needs to be set to true in order for the title to work.<br />
</code></p>
<p>So shouldn&#8217;t it be changed to &#8220;clickable&#8221; in the instructions?</p>
<p>Wayne Sallee<br />
<a href="mailto:Wayne@WayneSallee.com">Wayne@WayneSallee.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-15193</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 29 Jun 2010 00:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-15193</guid>
		<description>&lt;b&gt;selvaganesan s:&lt;/b&gt; i&#039;ve been just dealing with this problem, you have to store your marks in some variable. Array is ideal for bunch of marks. When you wanna clear them from the map and release from memory, call marker.setMap(null) for each of them.

var map = new google.maps.Map(element, options);
var marker = {};

function addMarker(title, lat, lng) {
  var m = new google.maps.Marker({
    position: new google.maps.LatLng(lat, lng),
    map: map,
    title: title
  });
    
  marker.push(m);
}

function clearMarks() {
  while(m = marker.pop()) {
    m.setMap(null);
  }
}</description>
		<content:encoded><![CDATA[<p><b>selvaganesan s:</b> i&#8217;ve been just dealing with this problem, you have to store your marks in some variable. Array is ideal for bunch of marks. When you wanna clear them from the map and release from memory, call marker.setMap(null) for each of them.</p>
<p>var map = new google.maps.Map(element, options);<br />
var marker = {};</p>
<p>function addMarker(title, lat, lng) {<br />
  var m = new google.maps.Marker({<br />
    position: new google.maps.LatLng(lat, lng),<br />
    map: map,<br />
    title: title<br />
  });</p>
<p>  marker.push(m);<br />
}</p>
<p>function clearMarks() {<br />
  while(m = marker.pop()) {<br />
    m.setMap(null);<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: selvaganesan s</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-15099</link>
		<dc:creator>selvaganesan s</dc:creator>
		<pubDate>Fri, 25 Jun 2010 06:48:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-15099</guid>
		<description>Hi 

How can i remove the markers from map in api 3.Because i  have  marker overloading problems..please help..</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>How can i remove the markers from map in api 3.Because i  have  marker overloading problems..please help..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-15044</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Tue, 22 Jun 2010 15:24:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-15044</guid>
		<description>&lt;strong&gt;Mirekh:&lt;/strong&gt; There&#039;s a v3 compatible version of MarkerManager that you can use to do the exact same thing. &lt;a href=&quot;http://google-maps-utility-library-v3.googlecode.com/svn/tags/markermanager/1.0/&quot; rel=&quot;nofollow&quot;&gt;Check out MarkerManager at the Google Code repository&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p><strong>Mirekh:</strong> There&#8217;s a v3 compatible version of MarkerManager that you can use to do the exact same thing. <a href="http://google-maps-utility-library-v3.googlecode.com/svn/tags/markermanager/1.0/" rel="nofollow">Check out MarkerManager at the Google Code repository</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mirekh</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-15043</link>
		<dc:creator>mirekh</dc:creator>
		<pubDate>Tue, 22 Jun 2010 12:57:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-15043</guid>
		<description>Hi

please, give me an advice in V3.

I would like to specify a zoom level, which the marker start to be displayed with.

There was no problem to do that in version 2.
I did that with 

mm = new GMarkerManager(map, {borderPadding:1});
...
mm.addMarker(marker,2,17);

How do that in V3 ?</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>please, give me an advice in V3.</p>
<p>I would like to specify a zoom level, which the marker start to be displayed with.</p>
<p>There was no problem to do that in version 2.<br />
I did that with </p>
<p>mm = new GMarkerManager(map, {borderPadding:1});<br />
&#8230;<br />
mm.addMarker(marker,2,17);</p>
<p>How do that in V3 ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-14693</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Thu, 03 Jun 2010 10:46:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-14693</guid>
		<description>&lt;strong&gt;Dominic:&lt;/strong&gt; No it&#039;s not. What it does is to attach a title attribute to the html element holding the marker. If you want to have a persistent label you need to use some kind of third party solution. Check out the official &lt;a href=&quot;http://code.google.com/p/google-maps-utility-library-v3/wiki/Libraries&quot; title=&quot;google-maps-utility-library-v3&quot; rel=&quot;nofollow&quot;&gt;utility libraries&lt;/a&gt; currently available for v3. Maybe you could use the InfoBox library to do this.</description>
		<content:encoded><![CDATA[<p><strong>Dominic:</strong> No it&#8217;s not. What it does is to attach a title attribute to the html element holding the marker. If you want to have a persistent label you need to use some kind of third party solution. Check out the official <a href="http://code.google.com/p/google-maps-utility-library-v3/wiki/Libraries" title="google-maps-utility-library-v3" rel="nofollow">utility libraries</a> currently available for v3. Maybe you could use the InfoBox library to do this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominic</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-14691</link>
		<dc:creator>Dominic</dc:creator>
		<pubDate>Thu, 03 Jun 2010 07:03:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-14691</guid>
		<description>Is it possible to have the tooltips of all markers staying on screen all the time without the need to move mouse over them?</description>
		<content:encoded><![CDATA[<p>Is it possible to have the tooltips of all markers staying on screen all the time without the need to move mouse over them?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zwirko</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-14615</link>
		<dc:creator>Zwirko</dc:creator>
		<pubDate>Mon, 31 May 2010 10:48:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-14615</guid>
		<description>Is it relatively easy to get a &quot;title&quot; tooltip to display when you load lots of markers from an xml file? I&#039;m struggling with this.</description>
		<content:encoded><![CDATA[<p>Is it relatively easy to get a &#8220;title&#8221; tooltip to display when you load lots of markers from an xml file? I&#8217;m struggling with this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brendan</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-14549</link>
		<dc:creator>Brendan</dc:creator>
		<pubDate>Thu, 27 May 2010 14:55:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-14549</guid>
		<description>Great explanation. I have a mini-site where you can in put a start-point and an end-point, then Google draws the journey on the map. 

However the default markers are just A and B. I need control over these labels. Any help would be much appreciated?</description>
		<content:encoded><![CDATA[<p>Great explanation. I have a mini-site where you can in put a start-point and an end-point, then Google draws the journey on the map. </p>
<p>However the default markers are just A and B. I need control over these labels. Any help would be much appreciated?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-14268</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Tue, 11 May 2010 11:40:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-14268</guid>
		<description>&lt;strong&gt;&lt;em&gt;Basti:&lt;/em&gt;&lt;/strong&gt; Yes you can still work with MarkerManager and/or XML files. There&#039;s also a utility library called &lt;a href=&quot;http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclusterer/1.0/&quot; rel=&quot;nofollow&quot;&gt;MarkerClusterer&lt;/a&gt; that you can use.

I don&#039;t know of any good tutorial on this for v3 but I&#039;ve just finished a chapter on how to do this using the MarkerManager for &lt;a href=&quot;http://www.svennerberg.com/2010/04/my-book-is-now-available-for-pre-order/&quot; rel=&quot;nofollow&quot;&gt;my upcoming book&lt;/a&gt;. So if you can wait until August you&#039;ll find a tutorial right there. :-) Other than that you can check out the examples in the &lt;a href=&quot;http://google-maps-utility-library-v3.googlecode.com/svn/tags/markermanager/1.0/&quot; rel=&quot;nofollow&quot;&gt;documentation for MarkerManager&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p><strong><em>Basti:</em></strong> Yes you can still work with MarkerManager and/or <acronym title="eXtensible Markup Language">XML</acronym> files. There&#8217;s also a utility library called <a href="http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclusterer/1.0/" rel="nofollow">MarkerClusterer</a> that you can use.</p>
<p>I don&#8217;t know of any good tutorial on this for v3 but I&#8217;ve just finished a chapter on how to do this using the MarkerManager for <a href="http://www.svennerberg.com/2010/04/my-book-is-now-available-for-pre-order/" rel="nofollow">my upcoming book</a>. So if you can wait until August you&#8217;ll find a tutorial right there. <img src='http://www.svennerberg.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Other than that you can check out the examples in the <a href="http://google-maps-utility-library-v3.googlecode.com/svn/tags/markermanager/1.0/" rel="nofollow">documentation for MarkerManager</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Basti</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-14266</link>
		<dc:creator>Basti</dc:creator>
		<pubDate>Tue, 11 May 2010 09:57:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-14266</guid>
		<description>Hey Gabriel,

great Tutorial very clear and simple,

but i&#039;ve a question, what do you think is the best option do manage a large amount of markers in v3? Can I still use the markermanager or work with xml files?

And i need to have categories and different zoom levels on my map but i can&#039;t find a helpful tutorial do you have any tips for me?

Thanks a lot

Basti</description>
		<content:encoded><![CDATA[<p>Hey Gabriel,</p>
<p>great Tutorial very clear and simple,</p>
<p>but i&#8217;ve a question, what do you think is the best option do manage a large amount of markers in v3? Can I still use the markermanager or work with xml files?</p>
<p>And i need to have categories and different zoom levels on my map but i can&#8217;t find a helpful tutorial do you have any tips for me?</p>
<p>Thanks a lot</p>
<p>Basti</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-13955</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Tue, 27 Apr 2010 05:31:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-13955</guid>
		<description>&lt;strong&gt;&lt;em&gt;Mike:&lt;/em&gt;&lt;/strong&gt; After experimenting a bit I found that the property &lt;code&gt;clickable&lt;/code&gt; needs to be set to &lt;code&gt;true&lt;/code&gt; in order for the title to work.</description>
		<content:encoded><![CDATA[<p><strong><em>Mike:</em></strong> After experimenting a bit I found that the property <code>clickable</code> needs to be set to <code>true</code> in order for the title to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-13948</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 26 Apr 2010 22:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-13948</guid>
		<description>Hi.

Great articles you have provided.

I am experimenting with adding a tooltip as described but unfortunately it doesn&#039;t appear.
Is there something wrong with my code ?

Thanks Mike






 
 
  function initialize() {
    var latlng = new google.maps.LatLng(15.6256915, 73.7344704);
    var options = {
      zoom: 15,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.HYBRID
    };
    var map = new google.maps.Map(document.getElementById(&#039;map&#039;), options);
  
  
  var marker = new google.maps.Marker({
  position: new google.maps.LatLng(15.6191105, 73.7351704),
  map: map
});
var marker = new google.maps.Marker({
  position: new google.maps.LatLng(15.6188521, 73.7347090),
  map: map,
  title: &#039;My workplace&#039;,
  clickable: false,
  icon: &#039;http://google-maps-icons.googlecode.com/files/factory.png&#039;
});

  
  
  
  
  
  }




  

</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>Great articles you have provided.</p>
<p>I am experimenting with adding a tooltip as described but unfortunately it doesn&#8217;t appear.<br />
Is there something wrong with my code ?</p>
<p>Thanks Mike</p>
<p>  function initialize() {<br />
    var latlng = new google.maps.LatLng(15.6256915, 73.7344704);<br />
    var options = {<br />
      zoom: 15,<br />
      center: latlng,<br />
      mapTypeId: google.maps.MapTypeId.HYBRID<br />
    };<br />
    var map = new google.maps.Map(document.getElementById(&#8216;map&#8217;), options);</p>
<p>  var marker = new google.maps.Marker({<br />
  position: new google.maps.LatLng(15.6191105, 73.7351704),<br />
  map: map<br />
});<br />
var marker = new google.maps.Marker({<br />
  position: new google.maps.LatLng(15.6188521, 73.7347090),<br />
  map: map,<br />
  title: &#8216;My workplace&#8217;,<br />
  clickable: false,<br />
  icon: &#8216;http://google-maps-icons.googlecode.com/files/factory.png&#8217;<br />
});</p>
<p>  }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-13523</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Wed, 07 Apr 2010 14:00:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-13523</guid>
		<description>Hi Gabriel

In &quot;my maps&quot; there is an option to display places of interest and then to choose which types of location (coffee shop, gas station, etc) to pinpoint on the map.

Is there any way of doing this in either V2 or V3?  I couldn&#039;t see it when I looked through the docs (but then there are a lot of docs to read).   I would find this very useful as our users who have holiday properties to rent could simply enter lat/long of their location into our db and other users (wanting to rent) could see where these kinds of things are.

Hmmm, &quot;simply&quot;?  Is there an API for searching by location, centering the map on an address, clicking on a button and getting an event with lat/long of the map centre?</description>
		<content:encoded><![CDATA[<p>Hi Gabriel</p>
<p>In &#8220;my maps&#8221; there is an option to display places of interest and then to choose which types of location (coffee shop, gas station, etc) to pinpoint on the map.</p>
<p>Is there any way of doing this in either V2 or V3?  I couldn&#8217;t see it when I looked through the docs (but then there are a lot of docs to read).   I would find this very useful as our users who have holiday properties to rent could simply enter lat/long of their location into our db and other users (wanting to rent) could see where these kinds of things are.</p>
<p>Hmmm, &#8220;simply&#8221;?  Is there an <acronym title="Application Programming Interface">API</acronym> for searching by location, centering the map on an address, clicking on a button and getting an event with lat/long of the map centre?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enrico</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-12239</link>
		<dc:creator>Enrico</dc:creator>
		<pubDate>Wed, 17 Feb 2010 16:08:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-12239</guid>
		<description>Thanks very much Gabriel, it&#039;s long time i was looking such a article so simple and clear!</description>
		<content:encoded><![CDATA[<p>Thanks very much Gabriel, it&#8217;s long time i was looking such a article so simple and clear!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-11352</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Wed, 20 Jan 2010 19:17:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-11352</guid>
		<description>&lt;strong&gt;&lt;em&gt;Gilles:&lt;/em&gt;&lt;/strong&gt; That&#039;s entirely possible. You just need to create a new MarkerImage for each marker type and pass it as the value for the marker objects icon property. (or just pass an url to the appropriate image to the icon property)</description>
		<content:encoded><![CDATA[<p><strong><em>Gilles:</em></strong> That&#8217;s entirely possible. You just need to create a new MarkerImage for each marker type and pass it as the value for the marker objects icon property. (or just pass an url to the appropriate image to the icon property)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gilles Tanguay</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-11350</link>
		<dc:creator>Gilles Tanguay</dc:creator>
		<pubDate>Wed, 20 Jan 2010 18:25:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-11350</guid>
		<description>Hi,

Is is possible to put miltiple and different markers on a google maps ?? I want to be able to place different markers (like the logo of the company) on the map; every company has a different logo and I want to be able to look at them easily.

Thanks !

Gilles</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Is is possible to put miltiple and different markers on a google maps ?? I want to be able to place different markers (like the logo of the company) on the map; every company has a different logo and I want to be able to look at them easily.</p>
<p>Thanks !</p>
<p>Gilles</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-10639</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Mon, 28 Dec 2009 09:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-10639</guid>
		<description>&lt;strong&gt;&lt;em&gt;David:&lt;/em&gt;&lt;/strong&gt; There&#039;s no clearOverlays() method in v3 so you have to manually keep track of your markers yourself. One way of doing that is to keep them in an array. To remove all the markers from the map you then loop through the array and remove them one by one. 

See the &lt;a href=&quot;http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/c0e80cdbde13dd36/0bb97b3de988b4f7?lnk=gst&amp;q=remove+markers#msg_de8afff5bd626295&quot; rel=&quot;nofollow&quot;&gt;Google Maps API v3 forum&lt;/a&gt; for an example on how to do this.

&lt;strong&gt;&lt;em&gt;Sandro:&lt;/em&gt;&lt;/strong&gt; MapIconMaker is currently not available for v3 but I know that at least one person is thinking about porting it to v3. Unfortunately there&#039;s no native way of changing colors or size of the icons in v3 either.

Check out the thread about MapIconMaker in the &lt;a href=&quot;http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/d380edb72c208345&quot; rel=&quot;nofollow&quot;&gt;Google Maps API v3 forum&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p><strong><em>David:</em></strong> There&#8217;s no clearOverlays() method in v3 so you have to manually keep track of your markers yourself. One way of doing that is to keep them in an array. To remove all the markers from the map you then loop through the array and remove them one by one. </p>
<p>See the <a href="http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/c0e80cdbde13dd36/0bb97b3de988b4f7?lnk=gst&#038;q=remove+markers#msg_de8afff5bd626295" rel="nofollow">Google Maps <acronym title="Application Programming Interface">API</acronym> v3 forum</a> for an example on how to do this.</p>
<p><strong><em>Sandro:</em></strong> MapIconMaker is currently not available for v3 but I know that at least one person is thinking about porting it to v3. Unfortunately there&#8217;s no native way of changing colors or size of the icons in v3 either.</p>
<p>Check out the thread about MapIconMaker in the <a href="http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/d380edb72c208345" rel="nofollow">Google Maps <acronym title="Application Programming Interface">API</acronym> v3 forum</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandro Franchi</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-10628</link>
		<dc:creator>Sandro Franchi</dc:creator>
		<pubDate>Sun, 27 Dec 2009 14:27:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-10628</guid>
		<description>Hi Gabriel, a question. I&#039;m using MapIconmaker in one of my apps (using API V2.x) just because I need to specify marker colors based in some attribute. I&#039;m willing to migrate to V3, but, is MapIconMaker compatible with V3 or there is any other way (perhaps native) to specify the markers color (and size).

Thanks in advance,

Sandro Franchi.</description>
		<content:encoded><![CDATA[<p>Hi Gabriel, a question. I&#8217;m using MapIconmaker in one of my apps (using <acronym title="Application Programming Interface">API</acronym> V2.x) just because I need to specify marker colors based in some attribute. I&#8217;m willing to migrate to V3, but, is MapIconMaker compatible with V3 or there is any other way (perhaps native) to specify the markers color (and size).</p>
<p>Thanks in advance,</p>
<p>Sandro Franchi.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David S</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-10368</link>
		<dc:creator>David S</dc:creator>
		<pubDate>Sun, 13 Dec 2009 05:13:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-10368</guid>
		<description>Hi,

Nice article. So far, I haven&#039;t been able to find any API calls in v3 to duplicate the map.clearOverlays() function in v2. Are you aware of any way to remove markers?

Thanks,
David</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Nice article. So far, I haven&#8217;t been able to find any <acronym title="Application Programming Interface">API</acronym> calls in v3 to duplicate the map.clearOverlays() function in v2. Are you aware of any way to remove markers?</p>
<p>Thanks,<br />
David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-10246</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Mon, 07 Dec 2009 18:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-10246</guid>
		<description>&lt;strong&gt;&lt;em&gt;Andy Clark:&lt;/em&gt;&lt;/strong&gt; Hi Andy and thanks!

I haven&#039;t seen any examples using ASP.NET 3.5 but that shouldn&#039;t make any difference.

Make sure that you have dimensions set for the containing element of the map. In my examples it&#039;s called &lt;code&gt;&lt;div id=&quot;map&quot;&gt;&lt;/div&gt;&lt;/code&gt;. Set its dimensions in your stylesheet like this:

&lt;pre&gt;
#map {
  width: 600px;
  height: 400px;
}
&lt;/pre&gt;

If that&#039;s not the problem, post a link  and I will try to take a quick look at it.</description>
		<content:encoded><![CDATA[<p><strong><em>Andy Clark:</em></strong> Hi Andy and thanks!</p>
<p>I haven&#8217;t seen any examples using <acronym title="Active Server Pages">ASP</acronym>.NET 3.5 but that shouldn&#8217;t make any difference.</p>
<p>Make sure that you have dimensions set for the containing element of the map. In my examples it&#8217;s called <code>&lt;div id="map"&gt;&lt;/div&gt;</code>. Set its dimensions in your stylesheet like this:</p>
<pre>
#map {
  width: 600px;
  height: 400px;
}
</pre>
<p>If that&#8217;s not the problem, post a link  and I will try to take a quick look at it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Clark</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-10245</link>
		<dc:creator>Andy Clark</dc:creator>
		<pubDate>Mon, 07 Dec 2009 17:22:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-10245</guid>
		<description>Hi Gabriel

Nice articles on API 3. Have you come across any examples of using API 3 with ASP.NET 3.5? The sample javascript executes without errors but nothing is displayed. The HTML examples work OK and as far as I can see the ASP.NET renders the HTML in the same way.

I don&#039;t want to bother you unnecessarily but I can post some examples if you&#039;re interested.

Many thanks

Andy</description>
		<content:encoded><![CDATA[<p>Hi Gabriel</p>
<p>Nice articles on <acronym title="Application Programming Interface">API</acronym> 3. Have you come across any examples of using <acronym title="Application Programming Interface">API</acronym> 3 with <acronym title="Active Server Pages">ASP</acronym>.NET 3.5? The sample javascript executes without errors but nothing is displayed. The <acronym title="HyperText Markup Language">HTML</acronym> examples work OK and as far as I can see the <acronym title="Active Server Pages">ASP</acronym>.NET renders the <acronym title="HyperText Markup Language">HTML</acronym> in the same way.</p>
<p>I don&#8217;t want to bother you unnecessarily but I can post some examples if you&#8217;re interested.</p>
<p>Many thanks</p>
<p>Andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-9236</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sat, 24 Oct 2009 15:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-9236</guid>
		<description>Hello Gabriel,

I am trying to incrust text (API v3) in the marks &lt;a href=&quot;http://gmaps-utility-library-dev.googlecode.com/svn/tags/labeledmarker/1.4/examples/simplelabeledmarker.html&quot; rel=&quot;nofollow&quot;&gt;&lt;b&gt;example&lt;/b&gt;&lt;/a&gt;, will be welcome any suggestions that you could give me in this topic.

And congratulations for this tutorial so practical and easy to deal

In advance thank you,

Regards.</description>
		<content:encoded><![CDATA[<p>Hello Gabriel,</p>
<p>I am trying to incrust text (<acronym title="Application Programming Interface">API</acronym> v3) in the marks <a href="http://gmaps-utility-library-dev.googlecode.com/svn/tags/labeledmarker/1.4/examples/simplelabeledmarker.html" rel="nofollow"><b>example</b></a>, will be welcome any suggestions that you could give me in this topic.</p>
<p>And congratulations for this tutorial so practical and easy to deal</p>
<p>In advance thank you,</p>
<p>Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-9126</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Tue, 20 Oct 2009 19:39:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-9126</guid>
		<description>&lt;strong&gt;&lt;em&gt;Than Polas:&lt;/em&gt;&lt;/strong&gt; You can use the LatLngBounds object for this. Simply extend it with the &lt;code&gt;LatLng&lt;/code&gt; of each marker you add to the map and then call the &lt;code&gt;fitBounds()&lt;/code&gt; method of the map object and pass it the &lt;code&gt;LatLngBounds&lt;/code&gt; object. 

Assuming that myPositions is an array containing LatLng objects this is how it&#039;s done:

&lt;pre&gt;
// Create a LatLngBounds object
var bounds = new google.maps.LatLngBounds();

for (var i = 0; i &lt; myPositions.lenght; i++) {
  // Insert code to add marker to map here

  // Extend the LatLngBound object
  bounds.extend(myPositions[i]);
}
map.fitBounds(bounds);
&lt;/pre&gt;

I hope that helps!</description>
		<content:encoded><![CDATA[<p><strong><em>Than Polas:</em></strong> You can use the LatLngBounds object for this. Simply extend it with the <code>LatLng</code> of each marker you add to the map and then call the <code>fitBounds()</code> method of the map object and pass it the <code>LatLngBounds</code> object. </p>
<p>Assuming that myPositions is an array containing LatLng objects this is how it&#8217;s done:</p>
<pre>
// Create a LatLngBounds object
var bounds = new google.maps.LatLngBounds();

for (var i = 0; i < myPositions.lenght; i++) {
  // Insert code to add marker to map here

  // Extend the LatLngBound object
  bounds.extend(myPositions[i]);
}
map.fitBounds(bounds);
</pre>
<p>I hope that helps!</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Than Polas</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-9118</link>
		<dc:creator>Than Polas</dc:creator>
		<pubDate>Tue, 20 Oct 2009 13:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-9118</guid>
		<description>Hello Gabriel, 
Do you have a solution for v3 to automatically adjust the zoom level so that it includes all the markers displayed?

e.g. i have multiple markers scattered on a map and i have to decide which zoom level to use... how can i do that in v3?

Thankyou</description>
		<content:encoded><![CDATA[<p>Hello Gabriel,<br />
Do you have a solution for v3 to automatically adjust the zoom level so that it includes all the markers displayed?</p>
<p>e.g. i have multiple markers scattered on a map and i have to decide which zoom level to use&#8230; how can i do that in v3?</p>
<p>Thankyou</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: atkins</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-9030</link>
		<dc:creator>atkins</dc:creator>
		<pubDate>Sat, 17 Oct 2009 13:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-9030</guid>
		<description>how to add multiple markers without separate entries like:

&lt;code&gt;
 marker1 = new google.maps.Marker({ position: latlng1, map: myMap, title:&#039;wdw&#039;  });
 marker2 = new google.maps.Marker({ position: latlng2, map: myMap, title:&#039;wdw&#039;  });
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>how to add multiple markers without separate entries like:</p>
<p><code><br />
 marker1 = new google.maps.Marker({ position: latlng1, map: myMap, title:'wdw'  });<br />
 marker2 = new google.maps.Marker({ position: latlng2, map: myMap, title:'wdw'  });<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nancy B</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-8120</link>
		<dc:creator>Nancy B</dc:creator>
		<pubDate>Wed, 09 Sep 2009 14:55:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-8120</guid>
		<description>Thank you so much for this. Like Lorenzo I had trouble with IE7 then I looked at the page source on your example and realized I had some mistakes in the javascript which I corrected. Hope that helps Lorenzo.

My site is focused on New England vineyards - I am trying to raise awareness and get people to visit them. The maps are very important, and with your help Gabriel, I can now put tooltips and other options.

As a graphic designer being able to follow your examples is great!
-- Nancy</description>
		<content:encoded><![CDATA[<p>Thank you so much for this. Like Lorenzo I had trouble with IE7 then I looked at the page source on your example and realized I had some mistakes in the javascript which I corrected. Hope that helps Lorenzo.</p>
<p>My site is focused on New England vineyards &#8211; I am trying to raise awareness and get people to visit them. The maps are very important, and with your help Gabriel, I can now put tooltips and other options.</p>
<p>As a graphic designer being able to follow your examples is great!<br />
&#8211; Nancy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lorenzo</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-7666</link>
		<dc:creator>Lorenzo</dc:creator>
		<pubDate>Mon, 24 Aug 2009 10:38:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-7666</guid>
		<description>Hello Gabriel, I am Lorenzo Emanuelli; tnx for this very useful blog. I have a little problem: Google Maps Api 3 work very well on firefox for windows and mac, but on ie7 i can&#039;t view the map, using the same code ! Have you an idea of which problem coluld be? 
Tnx for your attention.

Lorenzo</description>
		<content:encoded><![CDATA[<p>Hello Gabriel, I am Lorenzo Emanuelli; tnx for this very useful blog. I have a little problem: Google Maps Api 3 work very well on firefox for windows and mac, but on ie7 i can&#8217;t view the map, using the same code ! Have you an idea of which problem coluld be?<br />
Tnx for your attention.</p>
<p>Lorenzo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trisna</title>
		<link>http://www.svennerberg.com/2009/07/google-maps-api-3-markers/comment-page-1/#comment-7305</link>
		<dc:creator>trisna</dc:creator>
		<pubDate>Fri, 14 Aug 2009 09:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=2115#comment-7305</guid>
		<description>Hello  everybody ,I am a php programmer
can you help me out by giving me a script of google map in which it will point multiple addresess dynamically.</description>
		<content:encoded><![CDATA[<p>Hello  everybody ,I am a php programmer<br />
can you help me out by giving me a script of google map in which it will point multiple addresess dynamically.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
