<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Peter Törnstrand &#187; google maps</title>
	<atom:link href="http://www.tornstrand.com/tag/google-maps/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tornstrand.com</link>
	<description>Drupal, PHP and web developing</description>
	<lastBuildDate>Fri, 16 Apr 2010 07:04:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Google Maps Cluster markers</title>
		<link>http://www.tornstrand.com/2008/06/18/google-maps-cluster-markers/</link>
		<comments>http://www.tornstrand.com/2008/06/18/google-maps-cluster-markers/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 08:49:41 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[cluster markers]]></category>
		<category><![CDATA[google maps]]></category>

		<guid isPermaLink="false">http://www.tornstrand.com/2008/06/18/google-maps-cluster-markers/</guid>
		<description><![CDATA[I&#8217;m working on a project right now where we make use of the Google Maps API to display various information on Google Maps. One page calls for a view of all golf courses in Sweden. To my surprice there are actually quite a few of them, closer to 500 golf courses. When you position lots [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a project right now where we make use of the Google Maps API to display various information on Google Maps. One page calls for a view of all golf courses in Sweden. To my surprice there are actually quite a few of them, closer to 500 golf courses. When you position lots and lots of markers in a small area of a map it can get quite cluttered and eventually the map starts to load painfully slow.</p>
<p>So with this in mind I set out to find a way to avoid this problem. I&#8217;ve seen on other sites markers that change depending on what level of zoom you&#8217;re currently in and a quick search on Google gave me the answer I was looking for. Cluster markers. Cluster markers is not a part of the Google Maps API but are supplied by third party developers. I went through a couple of different solutions but finally choose to use <a href="http://googlemapsapi.110mb.com/clustermarker/index.htm">ClusterMarker</a> by Martin Pearman.</p>
<blockquote><div class="blockquote_extender"><span>&lsquo;</span></div><p>ClusterMarker detects any group(s) of two or more markers whose icons visually intersect when displayed. Each group of intersecting markers is then replaced with a single <span style="font-weight: bold">cluster marker</span>. The cluster marker, when clicked, simply centers and zooms the map in on the markers whose icons previously intersected.</p></blockquote>
<p>The <a href="http://googlemapsapi.110mb.com/clustermarker/reference.htm">ClusterMarker API is well documented</a> and really easy to implement and use.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tornstrand.com/2008/06/18/google-maps-cluster-markers/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
