Google Map API helper app for Django
- 29/03/08 Demo online: blog
- 5/02/08 svn on google code : refactored - carpool demo projet with geo.googlemap django module
- django-googlemap blog
- dev site on google code
- django data model
- contact: spango[at]free.fr
(the following has to be updated)
Install
- add googlemap application in a django project
- edit googlemap/settings.py: set SECRET_KEY (get a key at http://code.google.com/apis/maps/signup.html)
- import googlemap/settings.py in the main settings.py: from googlemap.settings import *
- add googlemap urls: (r'^mysite/gmap/', include('mysite.googlemap.urls')),
Getting started
- (NYI)create a map: http://localhost:8000/yourproj/admin/googlemap/gmap2/add/
- add a marker: NYI
what django-gmap can do (right now)
- http://localhost:8000/gmap/test : displays a map
- http://localhost:8000/gmap/test/circle : displays a map, adds a marker with a circle on double-click
- http://localhost:8000/gmap/input : display a map, adds markers on double-clicks and populate database
- data model for persistence: GLatLng, GMarker, GMarkerOptions, GMap2, GDirection, GIcon, GPoly
- enhanced admin: add GLatLng entities by clicking on a google map
what django-gmap will do (soon I hope)
- complete customization of django admin for geo data (wisiwyg)
