title: GeoDjango: Clustering of large number of markers
body: <p>Hi Stackoverflow people, </p>
  
  <p>I started using GeoDjango and I was very happy when I came across the Google map v2 implementation <code>django.contrib.gis.maps.google.overlays</code>. Not the newest anymore, since v2 is depreciated, but still a very compact tools to simply display markers on a map with</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"&gt;
  {{ google.xhtml }}
  &lt;head&gt;
    {{ google.style }}
    {{ google.scripts }}
  &lt;/head&gt;
  &lt;body onload="{{ google.js_module }}.map_load()" onunload="GUnload()"&gt;
    &lt;div id="{{ google.dom_id }}" style="width:600px; height:400px;"&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Code taken from <a href="http://jefurii.cafejosti.net/blog/2011/05/05/basic-google-maps-django/" rel="nofollow">here</a>.</p>
  
  <p>Based on this very compact code, how can I implement a <a href="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/examples/simple_example.html?" rel="nofollow">clustering function</a>? I have read that clustering is not supported by GeoDjango at the moment. <strong>Has anyone implemented clustering by using the <code>django.contrib.gis.maps.google.overlays</code>? Or is it the better way to write the full function myself and loop through all list entries to create the markers?</strong></p>
  
  <p>Thank you for sharing your experience and suggestions.</p>