<?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: 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>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: Joey</title>
		<link>http://www.svennerberg.com/2008/10/effective-use-of-custom-icons-in-google-maps/comment-page-1/#comment-15615</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-15615</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-page-1/#comment-8818</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-8818</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-page-1/#comment-3578</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-3578</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-page-1/#comment-920</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-920</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 <acronym title="Asynchronous JavaScript and XML">AJAX</acronym> 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-page-1/#comment-912</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-912</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-page-1/#comment-876</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-876</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-page-1/#comment-873</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-873</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>
