Blog Archive for November 26, 2009

Simple Google Maps with Django

November 26, 2009

Here's a simple example of using Google Maps with Django. The map in question is online at http://www.brassbandresults.co.uk/map/.

Javascript

The javascript that specifies which points to show on the map is at http://www.brassbandresults.co.uk/map/map_script.js. This is generated using the following django template:

function initialize() {
   if (GBrowserIsCompatible()) {
     var map = …