<?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/"
		>
<channel>
	<title>Comments on: Effective Use of Custom Icons in Google Maps</title>
	<atom:link href="http://www.svennerberg.com/2008/10/effective-use-of-custom-icons-in-google-maps/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.svennerberg.com/2008/10/effective-use-of-custom-icons-in-google-maps/</link>
	<description>Web Applications Designed for Humans</description>
	<lastBuildDate>Fri, 03 Feb 2012 20:33:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Phil Mos</title>
		<link>http://www.svennerberg.com/2008/10/effective-use-of-custom-icons-in-google-maps/#comment-1257</link>
		<dc:creator>Phil Mos</dc:creator>
		<pubDate>Tue, 10 Jan 2012 19:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=476#comment-1257</guid>
		<description>Mee toooo!  Even though it is outdated it opened up some ideas to me that made my project possible.  Thank you!</description>
		<content:encoded><![CDATA[<p>Mee toooo!  Even though it is outdated it opened up some ideas to me that made my project possible.  Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vincenario</title>
		<link>http://www.svennerberg.com/2008/10/effective-use-of-custom-icons-in-google-maps/#comment-119</link>
		<dc:creator>vincenario</dc:creator>
		<pubDate>Wed, 27 Apr 2011 17:54:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=476#comment-119</guid>
		<description>implemented this http://code.google.com/apis/maps/articles/phpsqlsearch.html on my site. I need help on how on how to implement the method u just explained above to use numeric icons which I have stored somewhere. Thanks inadvance.</description>
		<content:encoded><![CDATA[<p>implemented this <a href="http://code.google.com/apis/maps/articles/phpsqlsearch.html" rel="nofollow">http://code.google.com/apis/maps/articles/phpsqlsearch.html</a> on my site. I need help on how on how to implement the method u just explained above to use numeric icons which I have stored somewhere. Thanks inadvance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joey</title>
		<link>http://www.svennerberg.com/2008/10/effective-use-of-custom-icons-in-google-maps/#comment-118</link>
		<dc:creator>Joey</dc:creator>
		<pubDate>Sun, 18 Jul 2010 04:22:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=476#comment-118</guid>
		<description>Thank You.</description>
		<content:encoded><![CDATA[<p>Thank You.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sergey</title>
		<link>http://www.svennerberg.com/2008/10/effective-use-of-custom-icons-in-google-maps/#comment-117</link>
		<dc:creator>sergey</dc:creator>
		<pubDate>Sun, 11 Oct 2009 08:50:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=476#comment-117</guid>
		<description>Hi!Thank you for your tutorials.
The question is: how many different icons can we use for one map to not cause delay while loading?</description>
		<content:encoded><![CDATA[<p>Hi!Thank you for your tutorials.<br />
The question is: how many different icons can we use for one map to not cause delay while loading?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: E</title>
		<link>http://www.svennerberg.com/2008/10/effective-use-of-custom-icons-in-google-maps/#comment-116</link>
		<dc:creator>E</dc:creator>
		<pubDate>Fri, 17 Apr 2009 21:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=476#comment-116</guid>
		<description>This tutorial just saved me from insanity. Thankyou for your code.</description>
		<content:encoded><![CDATA[<p>This tutorial just saved me from insanity. Thankyou for your code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2008/10/effective-use-of-custom-icons-in-google-maps/#comment-115</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Fri, 19 Dec 2008 07:59:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=476#comment-115</guid>
		<description>Ok, now I understand. Sorry for being so daft! :-) 

The data originates in a database but is served to the script through an AJAX call that returns JSON. Then I simply loop through the JSON object and pass the type to the icons array like this.

&lt;pre&gt;
for(var i = 0; i &lt; json.length; i++) {
    var point = new GLatLng(json[i].Latitude, json[i].Longitude);
    var marker = new GMarker(point, { icon: myIcons[json[i].Type]});
    // Do some more stuff to add the marker to the map
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Ok, now I understand. Sorry for being so daft! <img src='http://www.svennerberg.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<p>The data originates in a database but is served to the script through an AJAX call that returns JSON. Then I simply loop through the JSON object and pass the type to the icons array like this.</p>
<pre>
for(var i = 0; i < json.length; i++) {
    var point = new GLatLng(json[i].Latitude, json[i].Longitude);
    var marker = new GMarker(point, { icon: myIcons[json[i].Type]});
    // Do some more stuff to add the marker to the map
}
</pre>
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: interested</title>
		<link>http://www.svennerberg.com/2008/10/effective-use-of-custom-icons-in-google-maps/#comment-114</link>
		<dc:creator>interested</dc:creator>
		<pubDate>Thu, 18 Dec 2008 20:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=476#comment-114</guid>
		<description>sorry for the confusion

My question was in your posting you said you use 

var marker = new GMarker(point, { icon: myIcons[type]});

instead of 

var marker = new GMarker(point, { icon: myIcons[&#039;house&#039;]});

I would like to know how you are passing the &#039;house&#039; variable to &#039;type&#039;. Are you grabbing it from a database, xml or some other way.</description>
		<content:encoded><![CDATA[<p>sorry for the confusion</p>
<p>My question was in your posting you said you use </p>
<p>var marker = new GMarker(point, { icon: myIcons[type]});</p>
<p>instead of </p>
<p>var marker = new GMarker(point, { icon: myIcons['house']});</p>
<p>I would like to know how you are passing the &#8216;house&#8217; variable to &#8216;type&#8217;. Are you grabbing it from a database, xml or some other way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2008/10/effective-use-of-custom-icons-in-google-maps/#comment-113</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Tue, 16 Dec 2008 09:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=476#comment-113</guid>
		<description>I don&#039;t think I understand your question. Could you please elaborate?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think I understand your question. Could you please elaborate?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: interested</title>
		<link>http://www.svennerberg.com/2008/10/effective-use-of-custom-icons-in-google-maps/#comment-112</link>
		<dc:creator>interested</dc:creator>
		<pubDate>Tue, 16 Dec 2008 05:23:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=476#comment-112</guid>
		<description>Sorry for being an idiot but how do you pass the type to the type variable? 

var marker = new GMarker(point, { icon: myIcons[type]});

I have a column in my database that labels (e.g. 1 , 2, 3 ) locations. How do I pass that label to the type variable? 

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Sorry for being an idiot but how do you pass the type to the type variable? </p>
<p>var marker = new GMarker(point, { icon: myIcons[type]});</p>
<p>I have a column in my database that labels (e.g. 1 , 2, 3 ) locations. How do I pass that label to the type variable? </p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

