Not quite sure what you're looking for, but I've used google maps with django, without using GeoDjango.
http://www.brassbandresults.co.uk/map/ The script used in this page is here: http://www.brassbandresults.co.uk/map/map_script.js which is generated using this template: function initialize() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map_canvas")); {% if Band %} map.setCenter(new GLatLng({{Band.latitude}}, {{Band.longitude}}), 12); {% else %} map.setCenter(new GLatLng(53.800651, -1.454), 8); {% endif %} map.setUIToDefault(); var mgr = new MarkerManager(map); var lBandMarkers = []; {% for band in Bands %} {% if band.latitude %} {% if band.longitude %} lPoint{{band.id}} = new GLatLng({{band.latitude}}, {{band.longitude}}); lMarker{{band.id}} = new GMarker(lPoint{{band.id}}, {title: "{{band.name}}"}); GEvent.addListener(lMarker{{band.id}}, "click", function() { var myHtml = "<b>{{band.name}}</b><br/>{% if band.rehearsal_night_1 %}Rehearsals {{band.rehearsal_nights}}{%endif%}<br/>[<a href='/bands/{{band.slug}}/'>Contest Results</a>] [<a target='_blank' href='{{band.website}}'>Band Website</a>]"; map.openInfoWindowHtml(lPoint{{band.id}}, myHtml); }); lBandMarkers.push(lMarker{{band.id}}); {% endif %} {% endif %} {% endfor %} mgr.addMarkers(lBandMarkers, 0); mgr.refresh(); } } Hope that helps, Tim. 504Django wrote: > Hmm ... the lack of a suggested solution to my question is > discouraging. The lack of common knowledge in the developer community > leads me to think that, aside from using the GeoDjango module, Django > may not be able to elegantly integrate with Google Maps AJAX API. It > that's truly the case, perhaps I should consider looking at a > different framework before I invest too much more effort. > > > On Nov 23, 10:01 pm, 504Django <504cr...@gmail.com> wrote: >> There seems to be a dearth of examples illustrating best practices in >> deploying Google Maps with Django. >> >> Common recommendations are to use GeoDjango. >> >> Of course, it doesn't have to be Google Maps. It could be >> OpenSteetMap, Yahoo Maps, or some other mapping API. >> >> Not necessarily related, there are also suggestions to use JQuery to >> handle AJAX requests. >> >> I'm trying to understand how to take the next step -- to make the >> required GXmlHttp GET requests calling a Django view that returns >> marker points, while not violating the RESTful nature of Django URLs. >> >> What would be the recommendation? >> >> To help the discussion along with an example, this might be the >> implementation of a pure AJAX solution returning XML with a Get >> request to a PHP page: >> >> var request = GXmlHttp.create(); >> request.open('GET','query.php?var1=' + val1 + '&var2=' + val1, true); >> request.onreadystatechange = function() { >> if (request.readyState == 4) { >> if (request.status == 200) { >> var xmlsource = request.responseXML; >> var markers = >> xmlsource.documentElement.getElementsByTagName >> ("marker"); >> for (var i = 0; i < markers.length; i++) { >> var lat = >> parseFloat(markers[i].getAttribute("lat")); >> var lng = >> parseFloat(markers[i].getAttribute("lng")); >> var latlng = new GLatLng(lat,lng); > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.