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.
> --
>
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to
django...@googlegroups.com.
> To unsubscribe from this group, send email to
django-users...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
>
>
>