Hi Stackoverflow people,
I started using GeoDjango and I was very happy when I came across the Google map v2 implementation django.contrib.gis.maps.google.overlays
. Not the newest anymore, since v2 is depreciated, but still a very compact tools to simply display markers on a map with
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
{{ google.xhtml }}
<head>
{{ google.style }}
{{ google.scripts }}
</head>
<body onload="{{ google.js_module }}.map_load()" onunload="GUnload()">
<div id="{{ google.dom_id }}" style="width:600px; height:400px;"></div>
</body>
</html>
Code taken from here.
Based on this very compact code, how can I implement a clustering function? I have read that clustering is not supported by GeoDjango at the moment. Has anyone implemented clustering by using the django.contrib.gis.maps.google.overlays
? Or is it the better way to write the full function myself and loop through all list entries to create the markers?
Thank you for sharing your experience and suggestions.